New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

basic-ms

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

basic-ms

Easy MS Module

latest
Source
npmnpm
Version
1.1.4
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

Image Image

Image

News

- Fixed unknown time error.

Use

const { timeToMs, parseMs, msToTime } = require('basic-ms');

//Time To Ms
timeToMs('1h'); // 3600000

//Ms To Time
msToTime(3600000); // 1h

//parseMs
parseMs(3600000); // { years: 0, months: 0, weeks: 0, days: 0, hours: 1, minutes: 60, seconds: 3600, milliseconds: 0 }

Keywords

basic-ms

FAQs

Package last updated on 08 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts