48 lines
1.9 KiB
JSON
48 lines
1.9 KiB
JSON
{
|
|
"name": "ms",
|
|
"version": "0.6.2",
|
|
"description": "Tiny ms conversion utility",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/guille/ms.js.git"
|
|
},
|
|
"main": "./index",
|
|
"devDependencies": {
|
|
"mocha": "*",
|
|
"expect.js": "*",
|
|
"serve": "*"
|
|
},
|
|
"component": {
|
|
"scripts": {
|
|
"ms/index.js": "index.js"
|
|
}
|
|
},
|
|
"readme": "# ms.js: miliseconds conversion utility\n\n```js\nms('1d') // 86400000\nms('10h') // 36000000\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` in NPM.\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",
|
|
"readmeFilename": "README.md",
|
|
"bugs": {
|
|
"url": "https://github.com/guille/ms.js/issues"
|
|
},
|
|
"_id": "ms@0.6.2",
|
|
"dist": {
|
|
"shasum": "d89c2124c6fdc1353d65a8b77bf1aac4b193708c",
|
|
"tarball": "http://registry.npmjs.org/ms/-/ms-0.6.2.tgz"
|
|
},
|
|
"_from": "ms@0.6.2",
|
|
"_npmVersion": "1.2.30",
|
|
"_npmUser": {
|
|
"name": "rauchg",
|
|
"email": "rauchg@gmail.com"
|
|
},
|
|
"maintainers": [
|
|
{
|
|
"name": "rauchg",
|
|
"email": "rauchg@gmail.com"
|
|
}
|
|
],
|
|
"directories": {},
|
|
"_shasum": "d89c2124c6fdc1353d65a8b77bf1aac4b193708c",
|
|
"_resolved": "https://registry.npmjs.org/ms/-/ms-0.6.2.tgz",
|
|
"homepage": "https://github.com/guille/ms.js",
|
|
"scripts": {}
|
|
}
|