itcast 6e512b8ce6 aaaa 10 bulan lalu
..
.github 6e512b8ce6 aaaa 10 bulan lalu
test 6e512b8ce6 aaaa 10 bulan lalu
.editorconfig 6e512b8ce6 aaaa 10 bulan lalu
.lint 6e512b8ce6 aaaa 10 bulan lalu
CHANGELOG.md 6e512b8ce6 aaaa 10 bulan lalu
CHANGES 6e512b8ce6 aaaa 10 bulan lalu
LICENSE 6e512b8ce6 aaaa 10 bulan lalu
README.md 6e512b8ce6 aaaa 10 bulan lalu
index.js 6e512b8ce6 aaaa 10 bulan lalu
package.json 6e512b8ce6 aaaa 10 bulan lalu

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 engines, microtask resolution is guaranteed by queueMicrotask
  • In older browsers, MutationObserver is used as a fallback
  • 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

Security contact information

To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.


Get professional support for d with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.