next-tick
Advanced tools
Comparing version 0.1.0 to 0.2.0
{ | ||
"name": "next-tick", | ||
"version": "0.1.0", | ||
"description": "Cross environment nextTick polyfill", | ||
"main": "lib/next-tick", | ||
"directories": { | ||
"test": "test" | ||
}, | ||
"scripts": { | ||
"test": "node node_modules/tad/bin/tad lib" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/medikoo/next-tick.git" | ||
}, | ||
"version": "0.2.0", | ||
"description": "Environment agnostic nextTick polyfill", | ||
"author": "Mariusz Nowak <medykk@medikoo.com> (http://www.medikoo.com/)", | ||
"keywords": [ | ||
@@ -22,2 +12,6 @@ "nexttick", | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/medikoo/next-tick.git" | ||
}, | ||
"bugs": { | ||
@@ -27,10 +21,12 @@ "email": "medikoo+next-tick@medikoo.com", | ||
}, | ||
"engines": { | ||
"node": ">=0.4" | ||
"scripts": { | ||
"test": "node node_modules/tad/bin/tad" | ||
}, | ||
"dependencies": { | ||
"es5-ext": "~0.9.2" | ||
}, | ||
"devDependencies": { | ||
"tad": "0.1.x" | ||
"tad": "~0.1.21" | ||
}, | ||
"author": "Mariusz Nowak <medikoo+next-tick@medikoo.com> (http://www.medikoo.com/)", | ||
"license": "MIT" | ||
} |
@@ -1,6 +0,10 @@ | ||
# nextTick - Cross environment nextTick polyfill | ||
# nextTick | ||
## Environment agnostic nextTick polyfill | ||
Can be used in cross environment modules that need nextTick functionality. | ||
To be used in environment agnostic modules that need nextTick functionality. | ||
When run in Node.js `process.nextTick` is run, in other engines `setImmediate` or `setTimeout(fn, 0)` is used as fallback. | ||
- When run in Node.js `process.nextTick` is used | ||
- In modern browsers microtask kind 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` | ||
@@ -14,8 +18,8 @@ ## Installation | ||
### Browser | ||
#### Browser | ||
You can easily bundle npm packages for browser with [modules-webmake](https://github.com/medikoo/modules-webmake) | ||
You can easily bundle `next-tick` for browser with any CJS bundler, e.g. [modules-webmake](https://github.com/medikoo/modules-webmake) | ||
## Tests [![Build Status](https://secure.travis-ci.org/medikoo/next-tick.png?branch=master)](https://secure.travis-ci.org/medikoo/next-tick) | ||
## Tests [![Build Status](https://api.travis-ci.org/medikoo/next-tick.png?branch=master)](https://travis-ci.org/medikoo/next-tick) | ||
$ npm test |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
5198
73
25
1
+ Addedes5-ext@~0.9.2
+ Addedes5-ext@0.9.2(transitive)