JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11631135
  • Score
    100M100P100Q217912F
  • License MIT

Parse milliseconds into an object

Package Exports

  • parse-ms

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (parse-ms) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

parse-ms Build Status

Parse milliseconds into an object

Install

Download manually or with a package-manager.

$ npm install --save parse-ms
$ bower install --save parse-ms
$ component install sindresorhus/parse-ms

Usage

var parseMs = require('parse-ms');

parseMs(1337000001);
//=> { days: 15, hours: 11, minutes: 23, seconds: 20, milliseconds: 1 }

Can be used with require, global and AMD in the browser.

License

MIT © Sindre Sorhus