{"_id":"default-resolution","_rev":"1953983","name":"default-resolution","description":"Get the default resolution time based on the current node version, optionally overridable","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"}],"time":{"modified":"2021-12-13T05:36:15.000Z","created":"2015-04-11T21:47:32.395Z","3.0.0":"2021-12-13T05:33:52.194Z","2.0.0":"2016-06-11T04:22:43.449Z","1.0.1":"2016-02-04T06:47:11.541Z","1.0.0":"2015-04-11T21:47:32.395Z"},"users":{},"author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"http://gulpjs.com/"},"repository":{"type":"git","url":"git+https://github.com/gulpjs/default-resolution.git"},"versions":{"3.0.0":{"name":"default-resolution","version":"3.0.0","description":"Get the default resolution time based on the current node version, optionally overridable","author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"http://gulpjs.com/"},"contributors":[{"name":"Blaine Bublitz","email":"blaine.bublitz@gmail.com"},{"name":"Damien Lebrun","email":"dinoboff@hotmail.com"}],"repository":{"type":"git","url":"git+https://github.com/gulpjs/default-resolution.git"},"license":"MIT","engines":{"node":">= 10.13.0"},"main":"index.js","scripts":{"lint":"eslint .","pretest":"npm run lint","test":"nyc mocha --async-only"},"dependencies":{"parse-node-version":"^2.0.0"},"devDependencies":{"eslint":"^7.32.0","eslint-config-gulp":"^5.0.1","eslint-plugin-node":"^11.1.0","expect":"^27.4.2","mocha":"^8.4.0","nyc":"^15.1.0","sinon":"^12.0.1"},"nyc":{"reporter":["lcov","text-summary"]},"prettier":{"singleQuote":true},"keywords":["resolution","timing"],"gitHead":"159d8545f4f5c069efb35498f21517ef8f30b127","bugs":{"url":"https://github.com/gulpjs/default-resolution/issues"},"homepage":"https://github.com/gulpjs/default-resolution#readme","_id":"default-resolution@3.0.0","_nodeVersion":"16.13.0","_npmVersion":"7.24.2","dist":{"shasum":"48201fe6d65ea35cd93af4ed39b15dc5772d3dde","size":2272,"noattachment":false,"key":"/default-resolution/-/default-resolution-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/default-resolution/download/default-resolution-3.0.0.tgz"},"_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"directories":{},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/default-resolution_3.0.0_1639373632047_0.14593780993403693"},"_hasShrinkwrap":false,"publish_time":1639373632194,"_cnpm_publish_time":1639373632194},"2.0.0":{"name":"default-resolution","version":"2.0.0","description":"Get the default resolution time based on the current node version, optionally overridable","author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"http://gulpjs.com/"},"contributors":[{"name":"Blaine Bublitz","email":"blaine.bublitz@gmail.com"},{"name":"Damien Lebrun","email":"dinoboff@hotmail.com"}],"repository":{"type":"git","url":"git+https://github.com/gulpjs/default-resolution.git"},"license":"MIT","engines":{"node":">= 0.10"},"main":"index.js","files":["LICENSE","index.js","node-version.js"],"scripts":{"lint":"eslint . && jscs index.js node-version.js test/","pretest":"npm run lint","test":"mocha --async-only","cover":"istanbul cover _mocha --report lcovonly","coveralls":"npm run cover && istanbul-coveralls"},"dependencies":{},"devDependencies":{"eslint":"^1.7.3","eslint-config-gulp":"^2.0.0","expect":"^1.19.0","istanbul":"^0.4.3","istanbul-coveralls":"^1.0.3","jscs":"^2.4.0","jscs-preset-gulp":"^1.0.0","mocha":"^2.4.5"},"keywords":["resolution","timing"],"gitHead":"d99c198c64a02e1af2e5c490e25f8617982e3c31","bugs":{"url":"https://github.com/gulpjs/default-resolution/issues"},"homepage":"https://github.com/gulpjs/default-resolution#readme","_id":"default-resolution@2.0.0","_shasum":"bcb82baa72ad79b426a76732f1a81ad6df26d684","_from":".","_npmVersion":"2.15.2","_nodeVersion":"0.10.41","_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"}],"dist":{"shasum":"bcb82baa72ad79b426a76732f1a81ad6df26d684","size":2442,"noattachment":false,"key":"/default-resolution/-/default-resolution-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/default-resolution/download/default-resolution-2.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/default-resolution-2.0.0.tgz_1465618960794_0.7021112279035151"},"directories":{},"publish_time":1465618963449,"_cnpm_publish_time":1465618963449,"_hasShrinkwrap":false},"1.0.1":{"name":"default-resolution","version":"1.0.1","description":"Get the default resolution time based on the current node version, optionally overridable","author":{"name":"Blaine Bublitz","email":"blaine@iceddev.com","url":"http://iceddev.com"},"contributors":[{"name":"Damien Lebrun","email":"dinoboff@hotmail.com"}],"repository":{"type":"git","url":"git+https://github.com/gulpjs/default-resolution.git"},"license":"MIT","engines":{"node":">= 0.10"},"main":"index.js","files":["LICENSE","index.js","node-version.js"],"scripts":{"lint":"eslint . && jscs *.js test/","test":"lab -cv"},"dependencies":{},"devDependencies":{"code":"^1.4.0","eslint":"^1.7.3","eslint-config-gulp":"^2.0.0","jscs":"^2.4.0","jscs-preset-gulp":"^1.0.0","lab":"^5.5.1"},"keywords":["resolution","timing"],"gitHead":"14b6c3637e34d59d6a9e5aa9eee846265631aef7","bugs":{"url":"https://github.com/gulpjs/default-resolution/issues"},"homepage":"https://github.com/gulpjs/default-resolution#readme","_id":"default-resolution@1.0.1","_shasum":"676de582cffab44629934412d53c656f40b151c5","_from":".","_npmVersion":"2.14.14","_nodeVersion":"0.10.41","_npmUser":{"name":"phated","email":"blaine@iceddev.com"},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"}],"dist":{"shasum":"676de582cffab44629934412d53c656f40b151c5","size":1875,"noattachment":false,"key":"/default-resolution/-/default-resolution-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/default-resolution/download/default-resolution-1.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/default-resolution-1.0.1.tgz_1454568429173_0.9065468946937472"},"directories":{},"publish_time":1454568431541,"_cnpm_publish_time":1454568431541,"_hasShrinkwrap":false},"1.0.0":{"name":"default-resolution","version":"1.0.0","description":"Get the default resolution time based on the current node version, optionally overridable","author":{"name":"Blaine Bublitz","email":"blaine@iceddev.com","url":"http://iceddev.com"},"contributors":[{"name":"Damien Lebrun","email":"dinoboff@hotmail.com"}],"repository":{"type":"git","url":"https://github.com/phated/default-resolution"},"license":"MIT","engines":{"node":">= 0.10"},"main":"index.js","files":["LICENSE","index.js","node-version.js"],"scripts":{"test":"lab -cvL"},"dependencies":{},"devDependencies":{"code":"^1.4.0","lab":"^5.5.1"},"keywords":["resolution","timing"],"gitHead":"07462ec319ffa24871261a266081951580e5c040","bugs":{"url":"https://github.com/phated/default-resolution/issues"},"homepage":"https://github.com/phated/default-resolution","_id":"default-resolution@1.0.0","_shasum":"90cad53249727fcbf39f8adc36d4db1e004b0eb8","_from":".","_npmVersion":"2.6.0","_nodeVersion":"0.10.36","_npmUser":{"name":"phated","email":"blaine@iceddev.com"},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"}],"dist":{"shasum":"90cad53249727fcbf39f8adc36d4db1e004b0eb8","size":1803,"noattachment":false,"key":"/default-resolution/-/default-resolution-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/default-resolution/download/default-resolution-1.0.0.tgz"},"directories":{},"publish_time":1428788852395,"_cnpm_publish_time":1428788852395,"_hasShrinkwrap":false}},"readme":"<p align=\"center\">\n  <a href=\"https://gulpjs.com\">\n    <img height=\"257\" width=\"114\" src=\"https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png\">\n  </a>\n</p>\n\n# default-resolution\n\n[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]\n\nGet the default resolution time based on the current node version, optionally overridable.\n\nOriginally implemented by [@dinoboff][dinoboff] in [gulpjs/undertaker#17][original].\n\nSplit out for standalone use.\n\n## Usage\n\n```js\nvar defaultResolution = require('default-resolution');\n\ndefaultResolution();\n//-> 1000 (1 second) in node 0.10\n//-> 1 (millisecond) in node 0.11+\n\n// use a different value\ndefaultResolution(12);\n//-> 12 always\n```\n\n## API\n\n### `defaultResolution([resolution])`\n\nReturns the default resolution, based on the node platform. See [Default resolution table][default-table] below for resolutions.\n\nOptionally takes a resolution number to force override any platform resolutions.\n\n### Default resolutions\n\n| node version | resolution |\n| ------------ | ---------- |\n| 0.10         | 1s         |\n| 0.11+        | 1ms        |\n\nMore information at https://github.com/gulpjs/undertaker/pull/17#issuecomment-82374512\n\n# License\n\nMIT\n\n<!-- prettier-ignore-start -->\n[downloads-image]: https://img.shields.io/npm/dm/default-resolution.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/default-resolution\n[npm-image]: https://img.shields.io/npm/v/default-resolution.svg?style=flat-square\n\n[ci-url]: https://github.com/gulpjs/default-resolution/actions?query=workflow:dev\n[ci-image]: https://img.shields.io/github/workflow/status/gulpjs/default-resolution/dev?style=flat-square\n\n[coveralls-url]: https://coveralls.io/r/gulpjs/default-resolution\n[coveralls-image]: https://img.shields.io/coveralls/gulpjs/default-resolution/master.svg?style=flat-square\n<!-- prettier-ignore-end -->\n\n<!-- prettier-ignore-start -->\n[dinoboff]: https://github.com/dinoboff\n[original]: https://github.com/gulpjs/undertaker/pull/17\n[default-table]: #default-resolutions\n<!-- prettier-ignore-end -->\n","_attachments":{},"homepage":"https://github.com/gulpjs/default-resolution#readme","bugs":{"url":"https://github.com/gulpjs/default-resolution/issues"},"license":"MIT"}