unicorn-magic
Some useful utilities I often need
Last updated 5 months ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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.0                                ...           latest (5 months ago)

4 Versions

  • 0.4.0                                ...           5 months ago
  • 0.3.0                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 17
Dependencies (0)
None
Dev Dependencies (5)

Copyright 2013 - present © cnpmjs.org | Home |