@adefw/stringkit
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

StringKit

String conversion toolkit for the browser and nodejs.

npm-publish

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

Support

Thanks to Jetbrains

Package Sidebar

Install

npm i @adefw/stringkit

Weekly Downloads

1

Version

0.2.1

License

MIT

Unpacked Size

8.34 kB

Total Files

9

Last publish

Collaborators

  • adefw
  • adecmd