package
Some useful utilities I often need
npm install unicorn-magicGitHub-flavored package documentation.
Across all versions, last 30 days.
360,773,040 in 30 days
Runtime metadata.
Tagged topics.
Some useful utilities I often need
I'm not accepting requests.
npm install unicorn-magicimport {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';See the Node.js types and default types.
Estimated unpacked size across 1 packages.
7.4 kB
Includes dependencies.