</>PackageGraphPackageGraph

ms

npmv2.1.3

Tiny 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.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

6.6 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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')    // -200

Dependencies

Declared by ms v2.1.3. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (6)

eslint 4.18.2expect.js 0.3.1husky 0.14.3lint-staged 5.0.0mocha 4.0.1prettier 2.0.5

Used by

Popular packages that depend on ms.

Relationship graph

Dependencies (left) and dependents (right) of ms.

sendmongoosedebugms
ms dependencies dependents

Frequently installed together

Release history

8 releases in the last two years, typically about 1 day apart.

Recent versions of ms
VersionPublishedSizeLicense
4.0.0-nightly.2025082713591 year ago14 KBMIT
4.0.0-nightly.2025082713581 year ago34 KBMIT
4.0.0-nightly.2025082701451 year ago34 KBMIT
3.0.0-canary.2025082618281 year ago34 KBMIT
3.0.0-canary.2025082617451 year ago34 KBMIT
3.0.0-canary.2025082615391 year ago34 KBMIT
3.0.0-canary.2025082520381 year ago33 KBMIT
3.0.0-canary.2025082520281 year ago33 KBMIT
3.0.0-canary.15 years ago14 KBMIT
3.0.0-canary.05 years ago6.3 KBMIT
3.0.0-beta.25 years ago14 KBMIT
3.0.0-beta.15 years ago14 KBMIT
3.0.0-beta.05 years ago13 KBMIT
2.1.3latest5 years ago6.6 KBMIT
2.1.27 years ago6.7 KBMIT

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.