Environment agnostic nextTick polyfill
JavaScript
Latest commit 562ac8f Jun 10, 2016 @medikoo Improve util name
Permalink
Failed to load latest commit information.
test Add tests for serial calls Feb 24, 2014
.gitignore -- lint Oct 5, 2012
.lint Convention cleanup Jun 9, 2016
.travis.yml Update Travis CI configuration Jun 9, 2016
CHANGES v1.0.0 Jun 9, 2016
LICENSE Update LICENSE Jun 9, 2016
README.md Improve Browser instructions Jun 9, 2016
index.js Improve util name Jun 9, 2016
package.json v1.0.0 Jun 9, 2016

README.md

next-tick

Environment agnostic nextTick polyfill

To be used in environment agnostic modules that need nextTick functionality.

  • When run in Node.js process.nextTick is used
  • In modern browsers microtask resolution is guaranteed by MutationObserver
  • In other engines setImmediate or setTimeout(fn, 0) is used as fallback.
  • If none of the above is supported module resolves to null

Installation

NPM

In your project path:

$ npm install next-tick

Browser

To port it to Browser or any other (non CJS) environment, use your favorite CJS bundler. No favorite yet? Try: Browserify, Webmake or Webpack

Tests Build Status

$ npm test