{
  "name": "ms",
  "version": "0.7.2",
  "description": "Tiny milisecond conversion utility",
  "repository": {
    "type": "git",
    "url": "git://github.com/zeit/ms"
  },
  "main": "./index",
  "files": [
    "index.js"
  ],
  "scripts": {
    "test": "xo && mocha test/index.js",
    "test-browser": "serve ./test"
  },
  "license": "MIT",
  "devDependencies": {
    "expect.js": "^0.3.1",
    "mocha": "^3.0.2",
    "serve": "^1.4.0",
    "xo": "^0.17.0"
  },
  "component": {
    "scripts": {
      "ms/index.js": "index.js"
    }
  },
  "xo": {
    "space": true,
    "semicolon": false,
    "envs": [
      "mocha"
    ],
    "rules": {
      "complexity": 0
    }
  },
  "readme": "# ms\n\n[![Build Status](https://travis-ci.org/zeit/ms.svg?branch=master)](https://travis-ci.org/zeit/ms)\n[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)\n[![Slack Channel](https://zeit-slackin.now.sh/badge.svg)](https://zeit.chat/)\n\nUse this package to easily convert various time formats to milliseconds.\n\n## Examples\n\n```js\nms('2 days')  // 172800000\nms('1d')      // 86400000\nms('10h')     // 36000000\nms('2.5 hrs') // 9000000\nms('2h')      // 7200000\nms('1m')      // 60000\nms('5s')      // 5000\nms('1y')      // 31557600000\nms('100')     // 100\n```\n\n### Convert from milliseconds\n\n```js\nms(60000)             // \"1m\"\nms(2 * 60000)         // \"2m\"\nms(ms('10 hours'))    // \"10h\"\n```\n\n### Time format written-out\n\n```js\nms(60000, { long: true })             // \"1 minute\"\nms(2 * 60000, { long: true })         // \"2 minutes\"\nms(ms('10 hours'), { long: true })    // \"10 hours\"\n```\n\n## Features\n\n- Works both in [node](https://nodejs.org) and in the browser.\n- If a number is supplied to `ms`, a string with a unit is returned.\n- If a string that contains the number is supplied, it returns it as a number (e.g.: it returns `100` for `'100'`).\n- If you pass a string with a number and a valid unit, the number of equivalent ms is returned.\n\n## Caught a bug?\n\n1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device\n2. Link the package to the global module directory: `npm link`\n3. Within the module you want to test your local development instance of ms, just link it to the dependencies: `npm link ms`. Instead of the default one from npm, node will now use your clone of ms!\n\nAs always, you can run the tests using: `npm test`\n",
  "readmeFilename": "README.md",
  "bugs": {
    "url": "https://github.com/zeit/ms/issues"
  },
  "homepage": "https://github.com/zeit/ms",
  "_id": "ms@0.7.2",
  "_shasum": "ae25cf2512b3885a1d95d7f037868d8431124765",
  "_from": "ms@0.7.2",
  "_resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz"
}
