tg-formatter

1.0.0 • Public • Published

formatter.js

提供一些数据的格式化方法,有数字,货币,时间等,具体可见源代码注释,或test代码

asText

input output
0 '0'
'0' '0'
null ''
undefined ''
true / false 'true' / 'false'

/tg-formatter/

    Package Sidebar

    Install

    npm i tg-formatter

    Weekly Downloads

    4

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    10 kB

    Total Files

    7

    Last publish

    Collaborators

    • taoguo