Skip to content

pansyjs/arabic-chinese-converter

Repository files navigation

@pansy/arabic-chinese-converter

Conversion between Chinese and Arabic numerals.

NPM version NPM downloads

📦 安装

  • 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