Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 838 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 838 Bytes

@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