StringKit
String conversion toolkit for the browser and nodejs.
Features
- convert string between fullwidth and halfwidth
- convert number between Arabic and CJK
Usage
const { ArabicToChinese, ChineseToArabic, toFullWidth, toHalfWidth } = require("adefw@stringkit")
ArabicToChinese(9527) // => 九五二七
ArabicToChinese(7347, { capital: true }) // 柒叁肆柒
ChineseToArabic('九五二七') // => 9527
toFullWidth('(9bC') // => (9bC
toHalfWidth('bC') // => bc
Todo
- [x] toHalfWidth
- [x] toFullWidth
- [x] ArabicToChinese
- [x] ChineseToArabic
- [ ] ChineseToArabicNumeric
- [ ] JapaneseToArabic
- [ ] KoreanToArabic