motion
Version:
motion - moving development forward
57 lines (56 loc) • 2.36 kB
JSON
{
"_args": [
[
"ms@https://registry.npmjs.org/ms/-/ms-0.7.0.tgz",
"/Users/nw/flint/packages/flint"
]
],
"_from": "ms@0.7.0",
"_id": "ms@0.7.0",
"_inCache": true,
"_location": "/ms",
"_phantomChildren": {},
"_requested": {
"name": "ms",
"raw": "ms@https://registry.npmjs.org/ms/-/ms-0.7.0.tgz",
"rawSpec": "https://registry.npmjs.org/ms/-/ms-0.7.0.tgz",
"scope": null,
"spec": "https://registry.npmjs.org/ms/-/ms-0.7.0.tgz",
"type": "remote"
},
"_requiredBy": [
"/debug",
"/send"
],
"_resolved": "https://registry.npmjs.org/ms/-/ms-0.7.0.tgz",
"_shasum": "865be94c2e7397ad8a57da6a633a6e2f30798b83",
"_shrinkwrap": null,
"_spec": "ms@https://registry.npmjs.org/ms/-/ms-0.7.0.tgz",
"_where": "/Users/nw/flint/packages/flint",
"bugs": {
"url": "https://github.com/guille/ms.js/issues"
},
"component": {
"scripts": {
"ms/index.js": "index.js"
}
},
"dependencies": {},
"description": "Tiny ms conversion utility",
"devDependencies": {
"expect.js": "*",
"mocha": "*",
"serve": "*"
},
"homepage": "https://github.com/guille/ms.js#readme",
"main": "./index",
"name": "ms",
"optionalDependencies": {},
"readme": "# ms.js: miliseconds conversion utility\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('100') // 100\n```\n\n```js\nms(60000) // \"1m\"\nms(2 * 60000) // \"2m\"\nms(ms('10 hours')) // \"10h\"\n```\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- Node/Browser compatible. Published as [`ms`](https://www.npmjs.org/package/ms) in [NPM](nodejs.org/download).\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\na number (e.g: it returns `100` for `'100'`).\n- If you pass a string with a number and a valid unit, the number of\nequivalent ms is returned.\n\n## License\n\nMIT\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git://github.com/guille/ms.js.git"
},
"version": "0.7.0"
}