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
- Actively maintained, with a recent push and tagged update on 2025-11-15 (v0.4.0), plus prior tagged updates in 2024 (v0.3.0 on 2024-07-25, v0.2.0 on 2024-05-11).
- Update cadence appears irregular, with a short gap between v0.2.0 and v0.3.0 (about 2 months in 2024), followed by a longer gap until v0.4.0 (about 16 months later).
AI summary generated Today
Recent updates
v0.4.0
6 months agov0.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.
BreakingFeaturesv0.3.0
7/25/2024v0.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.
Featuresv0.2.0
5/11/2024v0.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.
Featuresv0.1.0
11/9/2023Release 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).