1.2.2 ā€¢ Published 3 years ago

co-to-async v1.2.2

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

co-to-async

Are you using co?

This CLI utility will help you convert your code to use native async/await

example

Before:

const fn = co.wrap(function* (val) {
  return yield Promise.resolve(val);
})

fn(true).then(function (val) {

})

After:

const fn = async function (val) {
  return await Promise.resolve(val);
}

fn(true).then(function (val) {

})

install

npm install --global co-to-async

usage

Run co-to-async in a project folder, this will not change any files

When you're ready to make the changes, run co-to-async --save

Get more help via co-to-async --help

šŸŽ‰

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago