generatorify
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "generatorify", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Wrap function with callbacks to ES6 generator.", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "./node_modules/.bin/tap test/*.js" | ||
"test": "./node_modules/.bin/tap test/*.js", | ||
"prepublish": "semantic-release pre", | ||
"postpublish": "semantic-release post" | ||
}, | ||
@@ -9,0 +11,0 @@ "keywords": [ |
@@ -1,7 +0,8 @@ | ||
[![Build Status](https://travis-ci.org/stojanovic/generatorify.svg?branch=master)](https://travis-ci.org/stojanovic/generatorify) | ||
[![Build Status](https://travis-ci.org/stojanovic/generatorify.svg?branch=master)](https://travis-ci.org/stojanovic/generatorify) [![npm version](https://badge.fury.io/js/generatorify.svg)](http://badge.fury.io/js/generatorify) | ||
# Generatorify | ||
Wrap function with callback into generator. | ||
Based on this [gist](https://gist.github.com/yanatan16/8216252). | ||
Name is a bit misleading, this package wrap a function with callback into | ||
native ES6 promise so it can be used with generators. | ||
Module is based on this [gist](https://gist.github.com/yanatan16/8216252). | ||
@@ -35,1 +36,7 @@ ## Prerequests | ||
`tap test/*.js` | ||
## Limitations | ||
As mentioned above, this module requires io.js or node.js with `--harmony` flag. | ||
Also it works only with functions with one callback, if you have more than one, | ||
only one will be converted. |
9443
42