shelljs-plugin-sleep

0.2.2 • Public • Published

shelljs-plugin-sleep

Build Status npm shelljs-plugin

A ShellJS plugin for the sleep() command.

Installation

$ npm install --save shelljs
$ npm install --save shelljs-plugin-sleep

Usage

To use this plugin in your project, include it like so:

var shell = require('shelljs');
require('shelljs-plugin-sleep');

// Ex. usage:
shell.sleep(1); // the plugin is now available!

sleep(seconds)

No available options.

Examples:

shell.sleep(3); // sleep for 3000 milliseconds

Supported systems

  • Linux (all variants)
  • OS X
  • Windows

This is only supported for Node v4+

Writing plugins

If you're interested in taking a look at the current state of the plugin API, take a look at index.js. This has helpful comments explaining the necessary boilerplate for writing a plugin. For an example usage of the plugin, take a look at test/test.js.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.2
    628
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.2
    628
  • 0.2.1
    1
  • 0.2.0
    0
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i shelljs-plugin-sleep

Weekly Downloads

629

Version

0.2.2

License

MIT

Unpacked Size

7.37 kB

Total Files

6

Last publish

Collaborators

  • nfischer