</>PackageGraphPackageGraph

quansync

npmv1.0.0TypeScript

Create sync/async APIs with usable logic

Safe to adopt

Yes — quansync scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 279 days ago. 22 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • BMaintenance: grade B, Good.

    Last published 279 days ago. 22 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 15 KB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 2 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 quansync 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.

15 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
No constraint declared
Module format
ESM + CommonJS
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the quansync README.

import fs from 'node:fs'
import { quansync } from 'quansync'

// Create a quansync function by providing `sync` and `async` implementations
const readFile = quansync({
  sync: (path: string) => fs.readFileSync(path),
  async: (path: string) => fs.promises.readFile(path),
})

// Create a quansync function by providing a generator function
const myFunction = quansync(function* (filename) {
  // Use `yield*` to call another quansync function
  const code = yield* readFile(filename, 'utf8')
Example truncated — see the full README.

quansync vs the alternatives

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

PackageWeekly downloadsDependentsLicenseLast release
quansyncthis page01MIT9 months ago
co46M4MIT5 days ago
async-foreach900.6K15 days ago
await-lock01MIT6 days ago
regenerator-runtime04MIT6 days ago
p-limit333.1M5MIT5 days ago

Dependencies

Declared by quansync v1.0.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (13)

@antfu/eslint-config ^6.2.0@types/node ^24.10.1@typescript/native-preview 7.0.0-dev.20251202.1bumpp ^10.3.2eslint ^9.39.1gensync 1.0.0-beta.2lint-staged ^16.2.7mitata ^1.0.34simple-git-hooks ^2.13.1tsdown ^0.17.0-beta.5typescript ^5.9.3vite ^7.2.6vitest ^4.0.15

Used by

Popular packages that depend on quansync.

Relationship graph

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

local-pkgquansync
quansync dependencies dependents

Frequently installed together

Release history

22 releases in the last two years, typically about 0 days apart.

Recent versions of quansync
VersionPublishedSizeLicense
1.0.0latest9 months ago15 KBMIT
0.3.09 months ago22 KBMIT
0.2.111 year ago24 KBMIT
0.2.101 year ago23 KBMIT
0.2.91 year ago23 KBMIT
0.2.81 year ago20 KBMIT
0.2.71 year ago20 KBMIT
0.2.61 year ago20 KBMIT
0.2.51 year ago19 KBMIT
0.2.41 year ago19 KBMIT
0.2.31 year ago19 KBMIT
0.2.21 year ago18 KBMIT
0.2.11 year ago18 KBMIT
0.2.01 year ago11 KBMIT
0.1.01 year ago11 KBMIT

Overview

quansync is an npm package that create sync/async APIs with usable logic. It has 1 known dependents in the graph. The latest version is 1.0.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need create sync/async APIs with usable logic and value a focused solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • No significant drawbacks detected from available metadata.

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

Maintainers

Keywords

Funding

Frequently asked questions

Should I use quansync?

Yes — quansync scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 279 days ago. 22 releases in the last 2 years.

How do I install quansync?

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

What license is quansync released under?

quansync is distributed under the MIT license.

How popular is quansync?

npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on quansync.

Is quansync still maintained?

The most recent release of quansync (v1.0.0) was published 9 months ago.

Does quansync run install scripts?

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