# back-to-thunk **Repository Path**: mirrors_node-modules/back-to-thunk ## Basic Information - **Project Name**: back-to-thunk - **Description**: transform generator, generatorFunction, promise and other yieldables back to thunk - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2025-12-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 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](https://github.com/dead-horse/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