package
A ShellJS plugin for the sleep command
npm install shelljs-plugin-sleepGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 3 packages.
466.8 kB
Includes dependencies.
A ShellJS plugin for the sleep()
command.
$ npm install --save shelljs
$ npm install --save shelljs-plugin-sleepTo 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!No available options.
Examples:
shell.sleep(3); // sleep for 3000 millisecondsThis is only supported for Node v4+
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.