0.1.2 • Published 3 years ago

@sethtomy/milliseconds v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Tests

milliseconds

A package for obvious time-interval to millisecond conversions.

Installation

Install with NPM:

npm install @sethtomy/milliseconds

How to use:

import * as ms from '@sethtomy/millseconds'

const fromSeconds: number = ms.fromSeconds(30);
const fromMinutes: number = ms.fromMinutes(2);
const fromHours: number = ms.fromHours(1/60);
const fromDays: number = ms.fromDays(1.33);
// Average Month
const fromMonths: number = ms.fromMonths(12);
// Average Year
const fromYears: number = ms.fromYears(1);

Tests

To run:

npm test