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 source appears to be maintained but at a slow pace, with the most recent recorded update on 2025-11-15, and earlier updates in 2024 and 2023.
- Apparent updates cadence is roughly every 4 to 7 months in 2024, then a gap to 2025-11-15 (about 16 months after 2024-07-25). Relative to today (2026-06-09), there have been no new updates for about 7 months.
AI summary generated
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.
BreakingFeaturesv0.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.
Featuresv0.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.
Featuresv0.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).