bahttext
ภาษา: ไทย, English
เปลี่ยนตัวเลข เป็นคำอ่านภาษาไทย, โมดูลตัวนี้ได้ทำการทดสอบกับ Google Sheets BAHTTEXT function, Demo page เรียบร้อยแล้ว
ติดตั้ง
// ติดตั้งด้วย CommonJS
npm install bahttext
const { bahttext } = require('bahttext')
// ติดตั้งด้วย Bower
bower install bahttext
<script src="bower_components/bahttext/src/index.js"></script>
// ติดตั้งด้วย githack
<script src="https://raw.githack.com/jojoee/bahttext/master/src/index.js"></script>
// ติดตั้งด้วย ES6
npm install bahttext
import { bahttext } from "bahttext"
ตัวอย่างการใช้งาน
// หกหมื่นสามพันหนึ่งร้อยสี่สิบเจ็ดบาทแปดสิบเก้าสตางค์
bahttext(63147.89)
ฟีเจอร์
- x สามารถใช้งานได้ทุก เบราว์เซอร์
- x สามารถใช้งานได้ตั้งแต่ Node.js version 6-12
- x 0 Dependencies
- x ทำการทดสอบแบบ unit test
- ทดสอบบนเบราว์เซอร์ ในแต่ละ เวอร์ชั่น
- x ลดการซ้ำซ้อนของการเขียน ระหว่าง code และ ไฟล์ csv ในการทำการทดสอบ
- x หน้าตัวอย่างการใช้งาน
- x สนับสนุนการใช้งานกับตัวเลขติดลบ
- x แก้ไข semantic-release
CMD
brew install curl
brew install jq
npm install -g
curl -L -o ./misc/testcases.csv https://docs.google.com/spreadsheets/d/e/2PACX-1vTb8PIKzgo07rn9UpcjqE0YrdMAmf4fyDbL2plUieLCyrn_5O3vDvece7UfkaArWQLUSsaw92jVpY_z/pub?gid=0&single=true&output=csv
csvtojson ./misc/testcases.csv | jq > ./misc/testcases.json