npm.io
0.4.0 • Published 8 months ago

unicorn-magic

Licence
MIT
Version
0.4.0
Deps
0
Size
7 kB
Vulns
0
Weekly
0
Stars
55

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.

Keywords