Package detail

shelljs-plugin-sleep

nfischer12.5kMIT0.3.0

A ShellJS plugin for the sleep command

shelljs, plugin, sleep

readme

shelljs-plugin-sleep

GitHub Actions 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.

changelog

Change Log

v0.2.2 (2022-06-19)

Full Changelog

Fixed bugs:

  • Error when using a node path with spaces in Windows #12
  • fix: support space in node exec path #13 (nfischer)

v0.2.1 (2022-01-08)

Full Changelog

Merged pull requests:

v0.2.0 (2018-01-30)

Full Changelog

Fixed bugs:

  • Input redirection error on Windows #2

Merged pull requests:

v0.1.1 (2017-10-31)

Implemented enhancements:

  • Better fallback approach #1
  • feat: better fallback for Windows #3 (nfischer)

Fixed bugs:

Closed issues:

  • Let CI go up to Node 8 #4

Merged pull requests:

  • chore: update CI to include node 7 & 8 #5 (nfischer)

* This Change Log was automatically generated by github_changelog_generator