Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/medikoo/next-tick
Environment agnostic nextTick polyfill
https://github.com/medikoo/next-tick
Last synced: about 14 hours ago
JSON representation
Environment agnostic nextTick polyfill
- Host: GitHub
- URL: https://github.com/medikoo/next-tick
- Owner: medikoo
- License: isc
- Created: 2012-08-29T19:56:10.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2021-06-30T16:05:41.000Z (over 3 years ago)
- Last Synced: 2025-01-04T11:48:17.542Z (8 days ago)
- Language: JavaScript
- Homepage:
- Size: 41 KB
- Stars: 74
- Watchers: 7
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-ponyfills - next-tick - [`process.nextTick`](https://nodejs.org/api/process.html#process_process_nexttick_callback_args) (Node.js Features)
README
# next-tick
## Environment agnostic nextTick polyfillTo 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
### NPMIn 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](http://browserify.org/), [Webmake](https://github.com/medikoo/modules-webmake) or [Webpack](http://webpack.github.io/)
## Tests [![Build Status](https://api.travis-ci.org/medikoo/next-tick.png?branch=master)](https://travis-ci.org/medikoo/next-tick)
$ npm test
## Security contact information
To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). 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.