</>PackageGraphPackageGraph

unicorn-magic

npmv0.4.0

Some useful utilities I often need

Safe to adopt

Yes — unicorn-magic scores well across adoption, maintenance, weight, supply chain, and licensing. 31.6M downloads per week and 1 known dependents. Last published 298 days ago.

  • AAdoption: grade A, Excellent.

    31.6M downloads per week and 1 known dependents.

  • BMaintenance: grade B, Good.

    Last published 298 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 7.4 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • 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 unicorn-magic 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.

7.4 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
node >=20
Module format
ESM only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the unicorn-magic README.

import {delay} from 'unicorn-magic';

await delay({seconds: 1});

console.log('1 second later');

unicorn-magic vs the alternatives

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

PackageWeekly downloadsDependentsLicenseLast release
unicorn-magicthis page31.6M1MIT9 months ago
open130.4M4MIT1 day ago
type-fest337.8M6(MIT OR CC0-1.0)1 day ago
@jridgewell/resolve-uri166.3M1MIT1 day ago
tinyexec08MIT1 day ago
@expo/spawn-async09MIT1 day ago

Dependencies

Declared by unicorn-magic v0.4.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (5)

ava ^6.4.1in-range ^3.0.0time-span ^5.1.0typescript ^5.9.3xo ^0.59.2

Used by

Popular packages that depend on unicorn-magic.

Relationship graph

Dependencies (left) and dependents (right) of unicorn-magic.

find-upunicorn-magic
unicorn-magic dependencies dependents

Frequently installed together

Release history

1 release in the last two years, typically about 184 days apart.

Recent versions of unicorn-magic
VersionPublishedSizeLicense
0.4.0latest9 months ago7.4 KBMIT
0.3.02 years ago7.0 KBMIT
0.2.02 years ago5.1 KBMIT
0.1.02 years ago3.4 KBMIT

Overview

unicorn-magic is an npm package that some useful utilities I often need. It is extremely widely used, with about 31.6M downloads per week and 1 known dependents in the graph. The latest version is 0.4.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need some useful utilities I often need 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.6M 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

Funding

Frequently asked questions

Should I use unicorn-magic?

Yes — unicorn-magic scores well across adoption, maintenance, weight, supply chain, and licensing. 31.6M downloads per week and 1 known dependents. Last published 298 days ago.

How do I install unicorn-magic?

Run `npm install unicorn-magic` to add unicorn-magic to your npm project.

What license is unicorn-magic released under?

unicorn-magic is distributed under the MIT license.

How popular is unicorn-magic?

unicorn-magic has approximately 31,563,533 downloads per week and 1 known dependent packages.

Is unicorn-magic still maintained?

The most recent release of unicorn-magic (v0.4.0) was published 9 months ago.

Does unicorn-magic run install scripts?

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