Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

ms

Package Overview
Dependencies
0
Maintainers
1
Versions
24
Issues
File Explorer

Advanced tools

ms

Tiny ms conversion utility

    0.3.0

Version published
Maintainers
1
Weekly downloads
159,068,289
decreased by-0.06%

Weekly downloads

Changelog

Source

Fix ms(<String>) [visionmedia]

Readme

Source

ms.js: miliseconds conversion utility

ms('1d') // 86400000 ms('10h') // 36000000 ms('2h') // 7200000 ms('1m') // 60000 ms('5s') // 5000 ms('100') // 100 ms(100) // 100 ms(60000) // "1 minute" ms(2 * 60000) // "2 minutes" ms(ms('10 hours')) // "10 hours"
  • Node/Browser compatible. Published as ms in NPM.
  • If a number is supplied to ms, it returns it immediately.
  • If a string that contains the number is supplied, it returns it as a number (e.g: it returns 100 for '100').
  • If you pass a string with a number and a valid unit, the number of equivalent ms is returned.

FAQs

What is ms?

Tiny millisecond conversion utility

Is ms popular?

The npm package ms receives a total of 132,183,394 weekly downloads. As such, ms popularity was classified as popular.

Is ms well maintained?

We found that ms demonstrated a not healthy version release cadence and project activity. It has 55 open source maintainers collaborating on the project.

Last updated on 07 Sep 2012
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc