You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 769B

123456789101112131415161718192021222324
  1. # next-tick
  2. ## Environment agnostic nextTick polyfill
  3. To be used in environment agnostic modules that need nextTick functionality.
  4. - When run in Node.js `process.nextTick` is used
  5. - In modern browsers microtask resolution is guaranteed by `MutationObserver`
  6. - In other engines `setImmediate` or `setTimeout(fn, 0)` is used as fallback.
  7. - If none of the above is supported module resolves to `null`
  8. ## Installation
  9. ### NPM
  10. In your project path:
  11. $ npm install next-tick
  12. #### Browser
  13. You can easily bundle `next-tick` for browser with any CJS bundler, e.g. [modules-webmake](https://github.com/medikoo/modules-webmake)
  14. ## Tests [![Build Status](https://api.travis-ci.org/medikoo/next-tick.png?branch=master)](https://travis-ci.org/medikoo/next-tick)
  15. $ npm test