[go: up one dir, main page]

@warren-bank/node-sleep

1.0.0 • Public • Published

node-sleep

Description:

A configurable setTimeout().. nothing more. For use in npm scripts.

Installation:

npm install --save-dev @warren-bank/node-sleep

Usage:

node-sleep <integer>  # milliseconds

Example:

package.json

{
  "scripts": {
    "bundle:main":  "webpack --config webpack.config.main.js",

    "dev:server": "webpack-dev-server --config webpack.config.renderer.js",
    "dev:client": "electron .",

    "dev:spawn:server": "npm run bundle:main && npm run dev:server",
    "dev:spawn:client": "node-sleep 5000 && npm run dev:client",

    "start": "concurrently --kill-others npm:dev:spawn:*"
  }
}

Legal:

Package Sidebar

Install

npm i @warren-bank/node-sleep

Weekly Downloads

0

Version

1.0.0

License

GPL-2.0

Unpacked Size

19.8 kB

Total Files

5

Last publish

Collaborators

  • warren-r-bank