https://github.com/luludotdev/timeparser
Parse complex length strings to a millisecond value
https://github.com/luludotdev/timeparser
Last synced: 8 months ago
JSON representation
Parse complex length strings to a millisecond value
- Host: GitHub
- URL: https://github.com/luludotdev/timeparser
- Owner: luludotdev
- License: isc
- Created: 2019-05-16T02:05:28.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T03:44:41.000Z (over 3 years ago)
- Last Synced: 2025-10-07T14:59:28.062Z (8 months ago)
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@lolpants/timeparser
- Size: 741 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# ⏰ Timeparser

[](https://www.npmjs.com/package/@lolpants/timeparser)
[](https://www.npmjs.com/package/@lolpants/timeparser)
[](https://david-dm.org/lolpants/timeparser)
> Parse complex length strings to a millisecond value
## 💾 Installation
The package is on the NPM registry as `@lolpants/timeparser`. Simply install it with your NPM client of choice.
## 🔧 Usage
```ts
import { parse } from 'timeparser'
// Parse
const len = parse('1 minute')
// => 60000
```
Check `/test/parse.test.ts` for examples of parsable strings.