Skip to main content

Installation

You can install Enhanced MS using your preferred package manager.
npm install enhanced-ms

Requirements

Enhanced MS is compatible with:
  • Node.js 14 or higher
  • Modern browsers with ES2015+ support
  • TypeScript 4.5+ (optional, but recommended)

Package information

The package supports both CommonJS and ES modules, so you can use it with require() or import depending on your project setup.

Verify installation

After installation, you can verify it’s working by importing the package:
import { ms } from 'enhanced-ms';

console.log(ms(60000)); // "1 minute"
If the installation was successful, you should see "1 minute" printed to the console.

Next steps

Now that you have Enhanced MS installed, you’re ready to start using it in your project.

Quick start guide

Learn how to use Enhanced MS with practical examples

Build docs developers (and LLMs) love