@sethtomy/milliseconds
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @sethtomy/milliseconds

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

9.01 kB

Total Files

7

Last publish

Collaborators

  • sethtomy