| { |
| "_args": [ |
| [ |
| { |
| "raw": "ms@2.0.0", |
| "scope": null, |
| "escapedName": "ms", |
| "name": "ms", |
| "rawSpec": "2.0.0", |
| "spec": "2.0.0", |
| "type": "version" |
| }, |
| "/Users/steveng/repo/cordova/cordova-browser/node_modules/debug" |
| ] |
| ], |
| "_from": "ms@2.0.0", |
| "_id": "ms@2.0.0", |
| "_inCache": true, |
| "_location": "/ms", |
| "_nodeVersion": "7.8.0", |
| "_npmOperationalInternal": { |
| "host": "packages-18-east.internal.npmjs.com", |
| "tmp": "tmp/ms-2.0.0.tgz_1494937565215_0.34005374647676945" |
| }, |
| "_npmUser": { |
| "name": "leo", |
| "email": "leo@zeit.co" |
| }, |
| "_npmVersion": "4.2.0", |
| "_phantomChildren": {}, |
| "_requested": { |
| "raw": "ms@2.0.0", |
| "scope": null, |
| "escapedName": "ms", |
| "name": "ms", |
| "rawSpec": "2.0.0", |
| "spec": "2.0.0", |
| "type": "version" |
| }, |
| "_requiredBy": [ |
| "/debug", |
| "/send" |
| ], |
| "_resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", |
| "_shasum": "5608aeadfc00be6c2901df5f9861788de0d597c8", |
| "_shrinkwrap": null, |
| "_spec": "ms@2.0.0", |
| "_where": "/Users/steveng/repo/cordova/cordova-browser/node_modules/debug", |
| "bugs": { |
| "url": "https://github.com/zeit/ms/issues" |
| }, |
| "dependencies": {}, |
| "description": "Tiny milisecond conversion utility", |
| "devDependencies": { |
| "eslint": "3.19.0", |
| "expect.js": "0.3.1", |
| "husky": "0.13.3", |
| "lint-staged": "3.4.1", |
| "mocha": "3.4.1" |
| }, |
| "directories": {}, |
| "dist": { |
| "shasum": "5608aeadfc00be6c2901df5f9861788de0d597c8", |
| "tarball": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz" |
| }, |
| "eslintConfig": { |
| "extends": "eslint:recommended", |
| "env": { |
| "node": true, |
| "es6": true |
| } |
| }, |
| "files": [ |
| "index.js" |
| ], |
| "gitHead": "9b88d1568a52ec9bb67ecc8d2aa224fa38fd41f4", |
| "homepage": "https://github.com/zeit/ms#readme", |
| "license": "MIT", |
| "lint-staged": { |
| "*.js": [ |
| "npm run lint", |
| "prettier --single-quote --write", |
| "git add" |
| ] |
| }, |
| "main": "./index", |
| "maintainers": [ |
| { |
| "name": "leo", |
| "email": "leo@zeit.co" |
| }, |
| { |
| "name": "rauchg", |
| "email": "rauchg@gmail.com" |
| } |
| ], |
| "name": "ms", |
| "optionalDependencies": {}, |
| "readme": "# ms\n\n[![Build Status](https://travis-ci.org/zeit/ms.svg?branch=master)](https://travis-ci.org/zeit/ms)\n[![Slack Channel](http://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", |
| "repository": { |
| "type": "git", |
| "url": "git+https://github.com/zeit/ms.git" |
| }, |
| "scripts": { |
| "lint": "eslint lib/* bin/*", |
| "precommit": "lint-staged", |
| "test": "mocha tests.js" |
| }, |
| "version": "2.0.0" |
| } |