r3-v2/node_modules/next-tick
Theunis J. Botha 5f5bbac56e initial comit 2020-02-27 15:24:35 +01:00
..
test initial comit 2020-02-27 15:24:35 +01:00
.lint initial comit 2020-02-27 15:24:35 +01:00
.npmignore initial comit 2020-02-27 15:24:35 +01:00
.travis.yml initial comit 2020-02-27 15:24:35 +01:00
CHANGES initial comit 2020-02-27 15:24:35 +01:00
LICENSE initial comit 2020-02-27 15:24:35 +01:00
README.md initial comit 2020-02-27 15:24:35 +01:00
index.js initial comit 2020-02-27 15:24:35 +01:00
package.json initial comit 2020-02-27 15:24:35 +01:00

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

You can easily bundle next-tick for browser with any CJS bundler, e.g. modules-webmake

Tests Build Status

$ npm test