@adefw/stringkit

String conversion toolkit for the browser and nodejs.

Usage no npm install needed!

<script type="module">
  import adefwStringkit from 'https://cdn.skypack.dev/@adefw/stringkit';
</script>

README

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

  • toHalfWidth
  • toFullWidth
  • ArabicToChinese
  • ChineseToArabic
  • ChineseToArabicNumeric
  • JapaneseToArabic
  • KoreanToArabic

Support

Thanks to Jetbrains