JSPM

default-resolution

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1009536
  • Score
    100M100P100Q228294F
  • License MIT

Get the default resolution time based on the current node version, optionally overridable

Package Exports

  • default-resolution

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (default-resolution) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

default-resolution

Travis Build Status

Get the default resolution time based on the current node version, optionally overridable

Originally implemented by @dinoboff in https://github.com/gulpjs/undertaker/pull/17

Split out for standalone use.

Usage

var defaultResolution = require('default-resolution');

defaultResolution();
//-> 1000 in node 0.10
//-> 0 in node 0.11+

// use a different value
defaultResolution(12);
//-> 12 always

Default resolutions

node version resolution
0.10 1s
0.11+ 1ms

More information at https://github.com/gulpjs/undertaker/pull/17#issuecomment-82374512

License

MIT