@lolpants/timeparser
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

Timeparser

Node.js CI NPM version NPM downloads Dependencies

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

import { parse } from 'timeparser'

// Parse
const len = parse('1 minute')
// => 60000

Check /test/parse.test.ts for examples of parsable strings.

Readme

Keywords

none

Package Sidebar

Install

npm i @lolpants/timeparser

Weekly Downloads

0

Version

2.0.1

License

ISC

Unpacked Size

7.48 kB

Total Files

15

Last publish

Collaborators

  • lolpants