101 lines
4.8 KiB
JSON
101 lines
4.8 KiB
JSON
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "performance-now@^2.1.0",
|
|
"scope": null,
|
|
"escapedName": "performance-now",
|
|
"name": "performance-now",
|
|
"rawSpec": "^2.1.0",
|
|
"spec": ">=2.1.0 <3.0.0",
|
|
"type": "range"
|
|
},
|
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/request"
|
|
]
|
|
],
|
|
"_from": "performance-now@>=2.1.0 <3.0.0",
|
|
"_id": "performance-now@2.1.0",
|
|
"_inCache": true,
|
|
"_location": "/performance-now",
|
|
"_nodeVersion": "7.3.0",
|
|
"_npmOperationalInternal": {
|
|
"host": "packages-18-east.internal.npmjs.com",
|
|
"tmp": "tmp/performance-now-2.1.0.tgz_1487514529361_0.3097308638971299"
|
|
},
|
|
"_npmUser": {
|
|
"name": "meryn",
|
|
"email": "braveg1rl@outlook.com"
|
|
},
|
|
"_npmVersion": "4.2.0",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"raw": "performance-now@^2.1.0",
|
|
"scope": null,
|
|
"escapedName": "performance-now",
|
|
"name": "performance-now",
|
|
"rawSpec": "^2.1.0",
|
|
"spec": ">=2.1.0 <3.0.0",
|
|
"type": "range"
|
|
},
|
|
"_requiredBy": [
|
|
"/request"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
|
|
"_shasum": "6309f4e0e5fa913ec1c69307ae364b4b377c9e7b",
|
|
"_shrinkwrap": null,
|
|
"_spec": "performance-now@^2.1.0",
|
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/request",
|
|
"author": {
|
|
"name": "Braveg1rl",
|
|
"email": "braveg1rl@outlook.com"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/braveg1rl/performance-now/issues"
|
|
},
|
|
"dependencies": {},
|
|
"description": "Implements performance.now (based on process.hrtime).",
|
|
"devDependencies": {
|
|
"bluebird": "^3.4.7",
|
|
"call-delayed": "^1.0.0",
|
|
"chai": "^3.5.0",
|
|
"chai-increasing": "^1.2.0",
|
|
"coffee-script": "~1.12.2",
|
|
"mocha": "~3.2.0",
|
|
"pre-commit": "^1.2.2"
|
|
},
|
|
"directories": {},
|
|
"dist": {
|
|
"shasum": "6309f4e0e5fa913ec1c69307ae364b4b377c9e7b",
|
|
"tarball": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz"
|
|
},
|
|
"gitHead": "107bb703494cc5a8071cdf45a87e53f248a5e0f3",
|
|
"homepage": "https://github.com/braveg1rl/performance-now",
|
|
"keywords": [],
|
|
"license": "MIT",
|
|
"main": "lib/performance-now.js",
|
|
"maintainers": [
|
|
{
|
|
"name": "meryn",
|
|
"email": "merynstol@gmail.com"
|
|
}
|
|
],
|
|
"name": "performance-now",
|
|
"optionalDependencies": {},
|
|
"private": false,
|
|
"readme": "# performance-now [![Build Status](https://travis-ci.org/braveg1rl/performance-now.png?branch=master)](https://travis-ci.org/braveg1rl/performance-now) [![Dependency Status](https://david-dm.org/braveg1rl/performance-now.png)](https://david-dm.org/braveg1rl/performance-now)\n\nImplements a function similar to `performance.now` (based on `process.hrtime`).\n\nModern browsers have a `window.performance` object with - among others - a `now` method which gives time in milliseconds, but with sub-millisecond precision. This module offers the same function based on the Node.js native `process.hrtime` function.\n\nUsing `process.hrtime` means that the reported time will be monotonically increasing, and not subject to clock-drift.\n\nAccording to the [High Resolution Time specification](http://www.w3.org/TR/hr-time/), the number of milliseconds reported by `performance.now` should be relative to the value of `performance.timing.navigationStart`.\n\nIn the current version of the module (2.0) the reported time is relative to the time the current Node process has started (inferred from `process.uptime()`).\n\nVersion 1.0 reported a different time. The reported time was relative to the time the module was loaded (i.e. the time it was first `require`d). If you need this functionality, version 1.0 is still available on NPM.\n\n## Example usage\n\n```javascript\nvar now = require(\"performance-now\")\nvar start = now()\nvar end = now()\nconsole.log(start.toFixed(3)) // the number of milliseconds the current node process is running\nconsole.log((start-end).toFixed(3)) // ~ 0.002 on my system\n```\n\nRunning the now function two times right after each other yields a time difference of a few microseconds. Given this overhead, I think it's best to assume that the precision of intervals computed with this method is not higher than 10 microseconds, if you don't know the exact overhead on your own system.\n\n## License\n\nperformance-now is released under the [MIT License](http://opensource.org/licenses/MIT).\nCopyright (c) 2017 Braveg1rl\n",
|
|
"readmeFilename": "README.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/braveg1rl/performance-now.git"
|
|
},
|
|
"scripts": {
|
|
"build": "mkdir -p lib && rm -rf lib/* && node_modules/.bin/coffee --compile -m --output lib/ src/",
|
|
"prepublish": "npm test",
|
|
"pretest": "npm run build",
|
|
"test": "mocha",
|
|
"watch": "coffee --watch --compile --output lib/ src/"
|
|
},
|
|
"typings": "src/index.d.ts",
|
|
"version": "2.1.0"
|
|
}
|