Some useful utilities I often need
npm install unicorn-magic> Some useful utilities I often need
I'm not accepting requests.
``sh`
npm install unicorn-magic
`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';
See the Node.js types and default types.