npm

Need private packages and team management tools?Check out npm Orgs. »

simple-async-class

0.1.1 • Public • Published

simple async class

A simple utility module to convert every generator function in a Class into a function that returns promise

Install with:

npm install simple-async-class

Usage Example

const asyncClass = require('simple-async-class')
 
class MyClass {
  * doSomething() {
    // yield ...
  }
}
 
module.exports = asyncClass(MyClass)

install

npm i simple-async-class

Downloadsweekly downloads

11

version

0.1.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability