time-unit
Time Unit Conversion utility that mimics the conversion functionality of Java's TimeUnit class.
Features
- Easy to use
- Parses strings with time units
- Low overhead
- No dependencies
Installation
Install via npm.
npm install time-unit --save
Getting Started
To use time unit in your project:
const TimeUnit = ; let milliseconds = TimeUnitseconds;// milliseconds = 1000 let minutes = TimeUnithours;// minutes = 60 let milliseconds = TimeUnitmilliseconds;// milliseconds = 1000
Feedback
We'd love to get feedback on how to make this tool better. Feel free to contact us at feedback@vandium.io