- npm 安装
npm install @pansy/arabic-chinese-converter --dev --save
- yarn 安装
yarn add @pansy/arabic-chinese-converter --dev
import arabicChinese from '@pansy/arabic-chinese-converter';
const arabicChinese = new ArabicChinese();
console.log(arabicChinese.encode(1)); // 一
console.log(arabicChinese.decode('一)); // 1