hour-parser:解析用户提供的时间戳输入并获得良好的输出

时间:2021-02-04 06:20:20
【文件属性】:
文件名称:hour-parser:解析用户提供的时间戳输入并获得良好的输出
文件大小:61KB
文件格式:ZIP
更新时间:2021-02-04 06:20:20
parser time parsing userinput ParsingTypeScript 收获时间解析器 解析用户输入的持续时间或时间戳(十进制或hh:mm格式),并在JavaScript或TypeScript项目中获得漂亮的输出。 安装 在您的项目目录中,运行: npm install git+https://github.com/harvesthq/hour-parser.git#v1.1.0 用法 import HourParser from 'hour-parser' HourParser . toHHMM ( '0.5' ) // 0:30 HourParser . toHHMM ( '0:5' ) // 0:05 HourParser . toHHMM ( '1.25
【文件预览】:
hour-parser-master
----.eslintrc(1KB)
----.github()
--------workflows()
----src()
--------index.ts(2KB)
--------index.test.ts(3KB)
----CONTRIBUTING.md(259B)
----tsconfig.json(319B)
----jest.config.js(68B)
----LICENSE.md(1KB)
----README.md(1KB)
----index.d.ts(542B)
----.gitignore(22B)
----index.js(2KB)
----CHANGELOG.md(463B)
----package-lock.json(200KB)
----package.json(717B)

网友评论