mirror-rhinstaller-node-cache/unicorn-magic
2026-05-11 11:21:53 +00:00
..
default.d.ts dc62fd92941924495660734286311a3d44d6e15c919694aab2b00ce84bf0c990 package.json 2026-05-11 11:21:53 +00:00
default.js dc62fd92941924495660734286311a3d44d6e15c919694aab2b00ce84bf0c990 package.json 2026-05-11 11:21:53 +00:00
license dc62fd92941924495660734286311a3d44d6e15c919694aab2b00ce84bf0c990 package.json 2026-05-11 11:21:53 +00:00
node.d.ts dc62fd92941924495660734286311a3d44d6e15c919694aab2b00ce84bf0c990 package.json 2026-05-11 11:21:53 +00:00
node.js dc62fd92941924495660734286311a3d44d6e15c919694aab2b00ce84bf0c990 package.json 2026-05-11 11:21:53 +00:00
package.json dc62fd92941924495660734286311a3d44d6e15c919694aab2b00ce84bf0c990 package.json 2026-05-11 11:21:53 +00:00
readme.md dc62fd92941924495660734286311a3d44d6e15c919694aab2b00ce84bf0c990 package.json 2026-05-11 11:21:53 +00:00

unicorn-magic

Some useful utilities I often need

I'm not accepting requests.

Install

npm install unicorn-magic

Usage

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):

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

API

See the Node.js types and default types.