</>PackageGraphPackageGraph

co

npmv4.6.0

generator async control flow goodness

Not recommended for new projects

No — co should not be adopted for new projects. Last published 4080 days ago.

  • AAdoption: grade A, Excellent.

    31.2M downloads per week and 4 known dependents.

  • FMaintenance: grade F, Failing.

    Last published 4080 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies.

  • ASupply chain: grade A, Excellent.

    No install scripts, 3 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding co to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
iojs >= 1.0.0, node >= 0.12.0
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the co README.

co(function* () {
  var result = yield Promise.resolve(true);
  return result;
}).then(function (value) {
  console.log(value);
}, function (err) {
  console.error(err.stack);
});

co vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
cothis page31.2M4MIT11 years ago
quansync01MIT1 day ago
regenerator-runtime04MIT1 day ago
await-lock01MIT1 day ago
p-limit293.1M5MIT1 day ago
p-locate216.9M1MIT1 day ago

Dependencies

Declared by co v4.6.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (4)

browserify ^10.0.0istanbul-harmony 0mocha ^2.0.0mz ^1.0.2

Used by

Popular packages that depend on co.

Relationship graph

Dependencies (left) and dependents (right) of co.

pgpg-poolawait-lockjest-circusco
co dependencies dependents

Frequently installed together

Release history

No releases in the last two years, typically about 19 days apart.

Recent versions of co
VersionPublishedSizeLicense
4.6.0latest11 years agoMIT
4.5.411 years agoMIT
4.5.211 years agoMIT
4.5.111 years agoMIT
4.5.011 years agoMIT
4.4.011 years agoMIT
4.3.111 years agoMIT
4.3.011 years agoMIT
4.2.011 years agoMIT
4.1.011 years agoMIT
4.0.211 years agoMIT
4.0.111 years agoMIT
4.0.011 years agoMIT
3.1.012 years agoMIT
3.0.612 years agoMIT

Overview

co is an npm package that generator async control flow goodness. It is extremely widely used, with about 31.2M downloads per week and 4 known dependents in the graph. The latest version is 4.6.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need generator async control flow goodness and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (31.2M weekly downloads).
  • Clear open-source license (MIT).

Cons

  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use co?

No — co should not be adopted for new projects. Last published 4080 days ago.

How do I install co?

Run `npm install co` to add co to your npm project.

What license is co released under?

co is distributed under the MIT license.

How popular is co?

co has approximately 31,179,148 downloads per week and 4 known dependent packages.

Is co still maintained?

The most recent release of co (v4.6.0) was published 11 years ago.

Does co run install scripts?

No. co does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.