Back to Explore

sindresorhus/unicorn-magic

GitHub
2 watchersOpen source

Last release:

unicorn-magic is a JavaScript utility package that provides small helpers, such as a delay function for pausing execution for a given number of seconds. It also offers Node.js-specific utilities via a /node sub-export, which can help with bundler compatibility.

Project status

  • The repository appears to be in maintenance mode or quiet, with the most recent update in 2025-11-15 and no updates since then relative to today (2026-09-10).
  • Update cadence looks irregular, with gaps of about 15 months (2023-11-09 to 2024-05-11), about 2.5 months (2024-05-11 to 2024-07-25), and about 16 months (2024-07-25 to 2025-11-15).

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v0.4.0

    v0.4.0 raises the minimum Node.js requirement to Node 20 and adds a dedicated `/node` sub-export for bundler compatibility. The code changes also include an export map restructuring and CI toolchain updates that are not mentioned in the release notes.

    BreakingFeatures
  • v0.3.0

    v0.3.0 adds new child-process utility wrappers, execFile (Promise-based) and execFileSync (sync) under unicorn-magic. The wrappers mainly differ from Node's built-ins by using a larger default maxBuffer (10 MB) and using string output (stdout/stderr as strings). The diff also includes TypeScript definition restructuring and new tests for the added APIs.

    Features
  • v0.2.0

    v0.2.0 adds two new path utility exports, `rootDirectory` and `traversePathUp`, and updates the TypeScript definitions and tests accordingly. It also includes a minor documentation-only adjustment in `index.d.ts` and adds a security policy file.

    Features
  • v0.1.0

    Release v0.1.0 was published on 2023-11-09. The provided release notes contain no actionable information about features, fixes, breaking changes, or dependencies (only an emoji).