ms
npmv2.1.3Tiny millisecond conversion utility
Not recommended for new projects
No — ms should not be adopted for new projects. Last published 2101 days ago. 8 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- FMaintenance: grade F, Failing.
Last published 2101 days ago. 8 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 6.6 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 55 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding ms to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- No constraint declared
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the ms README.
ms('2 days') // 172800000
ms('1d') // 86400000
ms('10h') // 36000000
ms('2.5 hrs') // 9000000
ms('2h') // 7200000
ms('1m') // 60000
ms('5s') // 5000
ms('1y') // 31557600000
ms('100') // 100
ms('-3 days') // -259200000
ms('-1h') // -3600000
ms('-200') // -200Dependencies
Declared by ms v2.1.3. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (6)
Used by
Popular packages that depend on ms.
Relationship graph
Dependencies (left) and dependents (right) of ms.
Frequently installed together
An AST-based pattern checker for JavaScript.
RFC9562 UUIDs
A family of specs for interoperable TypeScript
Fast, unopinionated, minimalist web framework
Parse, validate, manipulate, and display dates
The fast, flexible & elegant library for parsing and manipulating HTML and XML.
{G,S}et object values using MongoDB-like path notation
Expressive query building for MongoDB
Official client encryption module for the MongoDB Node.js driver
TypeScript definitions for node
MongoDB query filtering in JavaScript
Next-generation take on pre/post function hooks
Release history
8 releases in the last two years, typically about 1 day apart.
| Version | Published | Size | License |
|---|---|---|---|
| 4.0.0-nightly.202508271359 | 1 year ago | 14 KB | MIT |
| 4.0.0-nightly.202508271358 | 1 year ago | 34 KB | MIT |
| 4.0.0-nightly.202508270145 | 1 year ago | 34 KB | MIT |
| 3.0.0-canary.202508261828 | 1 year ago | 34 KB | MIT |
| 3.0.0-canary.202508261745 | 1 year ago | 34 KB | MIT |
| 3.0.0-canary.202508261539 | 1 year ago | 34 KB | MIT |
| 3.0.0-canary.202508252038 | 1 year ago | 33 KB | MIT |
| 3.0.0-canary.202508252028 | 1 year ago | 33 KB | MIT |
| 3.0.0-canary.1 | 5 years ago | 14 KB | MIT |
| 3.0.0-canary.0 | 5 years ago | 6.3 KB | MIT |
| 3.0.0-beta.2 | 5 years ago | 14 KB | MIT |
| 3.0.0-beta.1 | 5 years ago | 14 KB | MIT |
| 3.0.0-beta.0 | 5 years ago | 13 KB | MIT |
| 2.1.3latest | 5 years ago | 6.6 KB | MIT |
| 2.1.2 | 7 years ago | 6.7 KB | MIT |
Overview
ms is an npm package that tiny millisecond conversion utility. It has 3 known dependents in the graph. The latest version is 2.1.3, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need tiny millisecond conversion utility and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (MIT).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use ms?
No — ms should not be adopted for new projects. Last published 2101 days ago. 8 releases in the last 2 years.
How do I install ms?
Run `npm install ms` to add ms to your npm project.
What license is ms released under?
ms is distributed under the MIT license.
How popular is ms?
npm does not publish download counts. Within PackageGraph's crawl, 3 known packages depend on ms.
Is ms still maintained?
The most recent release of ms (v2.1.3) was published 5 years ago.
Does ms run install scripts?
No. ms does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.