到数字分组:使用千位分隔符(或自定义文本)将字符串中的数字分组

时间:2021-03-04 04:59:20
【文件属性】:
文件名称:到数字分组:使用千位分隔符(或自定义文本)将字符串中的数字分组
文件大小:144KB
文件格式:ZIP
更新时间:2021-03-04 04:59:20
string format thousand-separator decimal-group TypeScript 要数字分组 使用千位分隔符(或自定义文本)将字符串中的数字分组。 import toDigitGrouped from 'to-digit-grouped' ; toDigitGrouped ( '1234567890.1234567890' ) ; // "1 234 567 890.1234567890" toDigitGrouped ( 'value: 1234567890.1234567890 unit' ) ; // "value: 1 234 567 890.1234567890 unit" toDigitGrouped ( '1234 and 5678' ) ; // 1 234 and 5678 toDigitGrouped ( '1234 and 5678' , { multiple : true } ) ; // 1 234 and 5 678 toDigitGro
【文件预览】:
to-digit-grouped-master
----renovate.json(107B)
----webpack.prod.js(437B)
----package.json(2KB)
----.github()
--------workflows()
----.prettierrc(68B)
----webpack.common.js(463B)
----tests()
--------toDigitGrouped.spec.ts(4KB)
----LICENSE(1KB)
----package-lock.json(617KB)
----webpack.dev.js(354B)
----src()
--------toDigitGrouped.ts(2KB)
--------index.ts(79B)
----.npmignore(67B)
----.eslintrc.js(551B)
----tsconfig.json(354B)
----.gitignore(79B)
----CHANGELOG.md(478B)
----Makefile(153B)
----README.md(1KB)
----.eslintignore(10B)
----babel.config.js(179B)

网友评论