# unicorn-magic

> Some useful utilities I often need

Latest version **0.4.0** (published 2025-11-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install unicorn-magic
pnpm add unicorn-magic
yarn add unicorn-magic
bun add unicorn-magic
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2025-11-15 |
| First published | 2023-11-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 56 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | utilities, util, extras, url, path, delay, wait, settimeout, sleep, child_process, child, process, subprocess, exec, execfile, execfilesync |

## Links

- npm: https://www.npmjs.com/package/unicorn-magic
- Repository: https://github.com/sindresorhus/unicorn-magic
- Homepage: https://github.com/sindresorhus/unicorn-magic#readme
- Issues: https://github.com/sindresorhus/unicorn-magic/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/unicorn-magic

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 0.4.0 (latest) — 2025-11-15
- 0.3.0 — 2024-07-25
- 0.2.0 — 2024-05-11
- 0.1.0 — 2023-11-09

## README

# unicorn-magic

> Some useful utilities I often need

*I'm not accepting requests.*

## Install

```sh
npm install unicorn-magic
```

## Usage

```js
import {delay} from 'unicorn-magic';

await delay({seconds: 1});

console.log('1 second later');
```

You can also import from the `/node` sub-export to explicitly get the Node.js-specific utilities (useful for bundler compatibility):

```js
import {toPath} from 'unicorn-magic/node';
```

## API

See the [Node.js types](node.d.ts) and [default types](default.d.ts).

---
_Source: https://npm.io/package/unicorn-magic · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
