formatter.js
提供一些数据的格式化方法,有数字,货币,时间等,具体可见源代码注释,或test代码
asText
input | output |
---|---|
0 | '0' |
'0' | '0' |
null | '' |
undefined | '' |
true / false | 'true' / 'false' |
提供一些数据的格式化方法,有数字,货币,时间等,具体可见源代码注释,或test代码
input | output |
---|---|
0 | '0' |
'0' | '0' |
null | '' |
undefined | '' |
true / false | 'true' / 'false' |
npm i tg-formatter
1
1.0.0
ISC
10 kB
7