Socket
Socket
Sign inDemoInstall

jsh

Package Overview
Dependencies
0
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.52.0 to 0.53.0

3

dist/index.d.ts

@@ -118,3 +118,4 @@ /// <reference types="node" />

/**
* Sleeps synchronously for the specified number of milliseconds
* Sleeps synchronously for the specified number of milliseconds. Will not block the event loop.
* Note: On Windows, sleep duration is only supported for seconds (1000ms) so the specified number of milliseconds will be rounded up to the nearest second.
* @param ms

@@ -121,0 +122,0 @@ */

{
"name": "jsh",
"version": "0.52.0",
"version": "0.53.0",
"description": "Helpers for Bash like shell scripting in JavaScript",

@@ -5,0 +5,0 @@ "author": "Brady Holt",

@@ -58,3 +58,3 @@ # jsh [![Build](https://github.com/bradymholt/jsh/actions/workflows/build.yml/badge.svg)](https://github.com/bradymholt/jsh/actions/workflows/build.yml) [![NPM Package](https://img.shields.io/npm/v/jsh.svg)](https://www.npmjs.com/package/jsh)

| `const name = prompt("What is your name?");` | Prompt for user input and return after \<Enter\> pressed; also aliased as `read()`. |
| `sleep(2000)` | Sleep for specified number of milliseconds |
| `sleep(2000)` | Sleep for specified number of milliseconds (synchronous and will not block event loop) |

@@ -70,3 +70,3 @@ **Command Execution** ([detailed docs below](#command-execution-helpers))

| --- | --- |
| `$0` | Return the name of the current script file (ex: `my_script.js`) |
| `$0` | Return the name of the **entry** script file (ex: `my_script.js`) |
| `$1, $2, $3` or<br/> `args[0], args[1], args[2]` ... | Access arguments that have been passed |

@@ -73,0 +73,0 @@ | `args.source_file, args.v` | Access arguments prefixed with "--" or "-".<br/><br/>If argument is in format `--source_file=input.txt` the value of `args.source_file` would be `"input.txt"`.<br/><br/>If argument is in format `--source_file` or `-v` the argument name will be available on args as a `true` boolean (`args.source_file == true`, `args.v == true`) |

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc