Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

back-to-thunk

0.0.1 • Public • Published

back-to-thunk

transform generator, generatorFunction, promise and other yieldables back to thunk

sometimes you want to transform all the yieldables back to thunk, so you can do some more fine-grained operation and compose. like co-any.

Install

npm install back-to-thunk

Usage

var toThunk = rquire('back-to-thunk');

var thunk = toThunk(function *() {
  yield 1;
  return 2;
});

License

MIT

install

npm i back-to-thunk

Downloadsweekly downloads

64

version

0.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability