tree: b51e7b152ceeeadede9f34d85dabc0ab10875874
  1. default.d.ts
  2. default.js
  3. license
  4. node.d.ts
  5. node.js
  6. package.json
  7. readme.md
node_modules/unicorn-magic/readme.md

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.