unicorn-magic
Some useful utilities I often need
Last updated 2 months ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install unicorn-magic 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.4.1                                ...           latest (2 months ago)

5 Versions

  • 0.4.1                                ...           2 months ago
  • 0.4.0                                ...           a year ago
  • 0.3.0                                ...           2 years ago
  • 0.2.0                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
Maintainers (1)
Downloads
Total 14
Today 1
This Week 3
This Month 9
Last Day 1
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (5)

© 2010 - cnpmjs.org x YWFE | Home | YWFE