UNPKG

@inst/vscode-bin-darwin

Version:

BINARY ONLY - VSCode binary deployment for macOS

85 lines (84 loc) 3.93 kB
{ "_args": [ [ { "raw": "ms@https://registry.npmjs.org/ms/-/ms-0.7.3.tgz", "scope": null, "escapedName": "ms", "name": "ms", "rawSpec": "https://registry.npmjs.org/ms/-/ms-0.7.3.tgz", "spec": "https://registry.npmjs.org/ms/-/ms-0.7.3.tgz", "type": "remote" }, "/Users/code/tfs/agent3/_work/2/s/extensions/json/server" ] ], "_from": "ms@0.7.3", "_id": "ms@0.7.3", "_inCache": true, "_location": "/ms", "_phantomChildren": {}, "_requested": { "raw": "ms@https://registry.npmjs.org/ms/-/ms-0.7.3.tgz", "scope": null, "escapedName": "ms", "name": "ms", "rawSpec": "https://registry.npmjs.org/ms/-/ms-0.7.3.tgz", "spec": "https://registry.npmjs.org/ms/-/ms-0.7.3.tgz", "type": "remote" }, "_requiredBy": [ "/", "/debug" ], "_resolved": "https://registry.npmjs.org/ms/-/ms-0.7.3.tgz", "_shasum": "708155a5e44e33f5fd0fc53e81d0d40a91be1fff", "_shrinkwrap": null, "_spec": "ms@https://registry.npmjs.org/ms/-/ms-0.7.3.tgz", "_where": "/Users/code/tfs/agent3/_work/2/s/extensions/json/server", "bugs": { "url": "https://github.com/zeit/ms/issues" }, "component": { "scripts": { "ms/index.js": "index.js" } }, "dependencies": {}, "description": "Tiny milisecond conversion utility", "devDependencies": { "expect.js": "0.3.1", "mocha": "3.0.2", "serve": "5.0.1", "xo": "0.17.0" }, "files": [ "index.js" ], "homepage": "https://github.com/zeit/ms#readme", "license": "MIT", "main": "./index", "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[![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", "repository": { "type": "git", "url": "git+https://github.com/zeit/ms.git" }, "scripts": { "test": "xo && mocha test/index.js", "test-browser": "serve ./test" }, "version": "0.7.3", "xo": { "space": true, "semicolon": false, "envs": [ "mocha" ], "rules": { "complexity": 0 } } }