colon-notation
Version:
A powerful tool to convert milliseconds to colon Notation and color Notation to milliseconds
17 lines (12 loc) • 483 B
Markdown
This is a tool to convert milliseconds into colon notation for example: 10:20 means 10 Minutes and 20 seconds.
Type `npm i colon-notation` in console to install it.
```
const { toColonNotation, toMilliseconds } = require('colon-notation');
console.log(toColonNotation(10000)) //00:10
console.log(toMilliseconds('01:20')) //80000
```
Join my [Discord server](https://discord.gg/e6wtRJs)