{"_id":"@andy922200/number-to-chinese-words","_rev":"4-e6a836c818493359efd10a350c9a6e70","time":{"created":"2023-11-25T16:31:37.635Z","1.0.0":"2023-11-25T16:23:22.263Z","modified":"2023-11-25T16:48:48.210Z","1.0.1":"2023-11-25T16:31:37.932Z","1.0.2":"2023-11-25T16:48:48.032Z"},"name":"@andy922200/number-to-chinese-words","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.1":{"name":"@andy922200/number-to-chinese-words","version":"1.0.1","type":"module","description":"An npm package for number formatting to Chinese words","repository":{"type":"git","url":"git+https://github.com/andy922200/number-to-chinese-words.git"},"exports":{".":{"import":"./dist/main.js","require":"./dist/main.cjs.js"}},"main":"./dist/main.cjs.js","module":"./dist/main.js","typings":"./dist/main.d.ts","scripts":{"dev":"vite","build":"tsc && vite build","preview":"vite preview","test":"jest","lint":"pnpm run eslint && pnpm run prettier","prettier":"prettier --write .","eslint":"eslint \"./**/*.{ts,tsx,js,jsx,d.ts}\" --fix"},"devDependencies":{"@rollup/plugin-typescript":"^11.1.5","@types/jest":"^29.5.10","@types/node":"^20.10.0","@typescript-eslint/eslint-plugin":"^6.12.0","@typescript-eslint/parser":"^6.12.0","eslint":"^8.54.0","eslint-config-prettier":"^9.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-prettier":"^5.0.1","jest":"^29.7.0","jest-environment-jsdom":"^29.7.0","jest-html-reporter":"^3.10.2","prettier":"^3.1.0","rollup-plugin-typescript-paths":"^1.4.0","ts-jest":"^29.1.1","tslib":"^2.6.2","typescript":"^5.2.2","vite":"^5.0.0"},"keywords":["number","chinese","words","formatting","typescript"],"gitHead":"28fe6f78e2bc14189cc8af7dd0f4a021734a22fa","bugs":{"url":"https://github.com/andy922200/number-to-chinese-words/issues"},"homepage":"https://github.com/andy922200/number-to-chinese-words#readme","_id":"@andy922200/number-to-chinese-words@1.0.1","_nodeVersion":"18.16.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-6iz8V5adk4PhAZYwRAhL69rtUGtol9Z6c2CrZMLSeEyNZ2AiLcKGHar0XqqcI0ZXMiLYx8eRBqAkfqqlnlrNCg==","shasum":"f33f4f8582879144f628011c38ed9695ea5d7cb2","tarball":"https://registry.npmjs.org/@andy922200/number-to-chinese-words/-/number-to-chinese-words-1.0.1.tgz","fileCount":9,"unpackedSize":9042,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICfT1svUHaKff4XY8zj1B7AEin2l65a++bt6X1IoQbn0AiEAiHLBuNWNobQ5Px1bgX1BSHFOOzrHhniSb1W0jZzklXs="}]},"_npmUser":{"name":"andy922200","email":"andy922200@gmail.com"},"directories":{},"maintainers":[{"name":"andy922200","email":"andy922200@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/number-to-chinese-words_1.0.1_1700929897714_0.8590061442988595"},"_hasShrinkwrap":false},"1.0.2":{"name":"@andy922200/number-to-chinese-words","version":"1.0.2","type":"module","description":"An npm package for number formatting to Chinese words","repository":{"type":"git","url":"git+https://github.com/andy922200/number-to-chinese-words.git"},"exports":{".":{"import":"./dist/main.js","require":"./dist/main.cjs.js"}},"main":"./dist/main.cjs.js","module":"./dist/main.js","typings":"./dist/main.d.ts","scripts":{"dev":"vite","build":"tsc && vite build","preview":"vite preview","test":"jest","lint":"pnpm run eslint && pnpm run prettier","prettier":"prettier --write .","eslint":"eslint \"./**/*.{ts,tsx,js,jsx,d.ts}\" --fix"},"devDependencies":{"@rollup/plugin-typescript":"^11.1.5","@types/jest":"^29.5.10","@types/node":"^20.10.0","@typescript-eslint/eslint-plugin":"^6.12.0","@typescript-eslint/parser":"^6.12.0","eslint":"^8.54.0","eslint-config-prettier":"^9.0.0","eslint-plugin-import":"^2.29.0","eslint-plugin-prettier":"^5.0.1","jest":"^29.7.0","jest-environment-jsdom":"^29.7.0","jest-html-reporter":"^3.10.2","prettier":"^3.1.0","rollup-plugin-typescript-paths":"^1.4.0","ts-jest":"^29.1.1","tslib":"^2.6.2","typescript":"^5.2.2","vite":"^5.0.0"},"keywords":["number","chinese","words","formatting","typescript"],"gitHead":"ae69a405305ba79dfde64227c59e93e61af354db","bugs":{"url":"https://github.com/andy922200/number-to-chinese-words/issues"},"homepage":"https://github.com/andy922200/number-to-chinese-words#readme","_id":"@andy922200/number-to-chinese-words@1.0.2","_nodeVersion":"18.16.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-+a0FEe2hwqtLLNkuac8iEawXdYN3Nw++AWtN2X1xNsjO34tCW/za507YeTtsVo5GBOoNpBOm2/l85jwqytXLpA==","shasum":"a06a2fd6527a76e9475fd91974090c3700191301","tarball":"https://registry.npmjs.org/@andy922200/number-to-chinese-words/-/number-to-chinese-words-1.0.2.tgz","fileCount":8,"unpackedSize":7559,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIECw+CZ4IHB4aAvd3zcTlSHOzZ2A/Y03NQTkb6iQWuXyAiAfrGOobCrPSVkvVgN9n9i9mNNZfLOT69ZTR/SKyRclEw=="}]},"_npmUser":{"name":"andy922200","email":"andy922200@gmail.com"},"directories":{},"maintainers":[{"name":"andy922200","email":"andy922200@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/number-to-chinese-words_1.0.2_1700930927853_0.6412021228749689"},"_hasShrinkwrap":false}},"maintainers":[{"name":"andy922200","email":"andy922200@gmail.com"}],"description":"An npm package for number formatting to Chinese words","homepage":"https://github.com/andy922200/number-to-chinese-words#readme","keywords":["number","chinese","words","formatting","typescript"],"repository":{"type":"git","url":"git+https://github.com/andy922200/number-to-chinese-words.git"},"bugs":{"url":"https://github.com/andy922200/number-to-chinese-words/issues"},"readme":"# Number To Chinese Words\n將數字轉換成中文數字顯示\nAn npm package for number formatting to Chinese words\n\n## 安裝 Installation\n\n使用 npm/yarn/pnpm 安裝此 package:\n\n```bash\nnpm install @andy922200/number-to-chinese-words\nyarn add @andy922200/number-to-chinese-words\npnpm add @andy922200/number-to-chinese-words\n```\n\n## 使用方法 Usage\n\n```typescript\nimport { NumberToChinese } from '@andy922200/number-to-chinese-words';\n\nconst result = NumberToChinese(1234567.89);\n\nconsole.log(formattedNumber); // 結果為 一百二十三萬四千五百六十七點八九\n```\n\n## Demo\n| Number 數字 | Chinese Representation 中文轉換 |\n| ------ | ---------------------- |\n| 0 | 零 |\n| 123 | 一百二十三 |\n| -123 | 負一百二十三 |\n| 9007199254740991 | 九千零七兆一千九百九十二億五千四百七十四萬零九百九十一 |\n| -9007199254740991 | 負九千零七兆一千九百九十二億五千四百七十四萬零九百九十一 |\n| 0.45 | 零點四五 |\n| 123.45 | 一百二十三點四五 |\n| 123.045608 | 一百二十三點零四五六零八 |\n| 19010100020100.01 | 十九兆零一百零一億零二萬零一百點零一 |\n| -0.45 | 負零點四五 |\n| -123.45 | 負一百二十三點四五 |\n| -123.045608 | 負一百二十三點零四五六零八 |\n| -19010100020100.01 | 負十九兆零一百零一億零二萬零一百點零一 |\n| 10 | 十 |\n| 100 | 一百 |\n| 1000 | 一千 |\n| 1000000 | 一百萬 |\n| 10000000 | 一千萬 |\n| 100000000 | 一億 |\n| 1000000000 | 十億 |\n| 10000000000 | 一百億 |\n| 1000000000000 | 一兆 |\n| 3001 | 三千零一 |\n| 30001 | 三萬零一 |\n| 3000100 | 三百萬零一百 |\n| 300020100 | 三億零二萬零一百 |\n| 3000000000000100 | 三千兆零一百 |\n| 3000010100000100 | 三千兆零一百零一億零一百 |\n| 8019010100020100 | 八千零一十九兆零一百零一億零二萬零一百 |\n| 8019010100022010 | 八千零一十九兆零一百零一億零二萬二千零一十 |\n| -3001 | 負三千零一 |\n| -30001 | 負三萬零一 |\n| -3000100 | 負三百萬零一百 |\n| -300020100 | 負三億零二萬零一百 |\n| -3000000000000100 | 負三千兆零一百 |\n| -3000010100000100 | 負三千兆零一百零一億零一百 |\n| -8019010100020100 | 負八千零一十九兆零一百零一億零二萬零一百 |\n| -8019010100022010 | 負八千零一十九兆零一百零一億零二萬二千零一十 |\n\n\n## 作者 Author\n[Andy Lien @andy922200 ](https://github.com/andy922200)\n","readmeFilename":"Readme.md"}