Socket
Book a DemoInstallSign in
Socket

back-to-thunk

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

back-to-thunk

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

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
7
-65%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

co

FAQs

Package last updated on 12 Mar 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts