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.49.0 to 0.50.0

7

dist/index.d.ts

@@ -299,8 +299,9 @@ /// <reference types="node" />

* @param path
* @param recursive Whether parent directories should also be created. Defaults to true.
*/
declare const _mkDir: (path: string) => void;
declare const _mkDir: (path: string, recursive?: boolean) => void;
/**
* Removes a file or directory if it exists.
* @param path
* @param recursive Defaults to true
* @param recursive Whether child directories should also be removed. Defaults to true.
*/

@@ -311,3 +312,3 @@ declare const _rm: (path: string, recursive?: boolean) => void;

* @param path
* @param recursive Defaults to true
* @param recursive Whether files from child directories should be included. Defaults to true.
* @returns

@@ -314,0 +315,0 @@ */

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

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

@@ -87,3 +87,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)

| `dirExists("./myDir")` | Check if directory exists |
| `mkDir("./newDirName")` | Create a directory |
| `mkDir("./newDirName")` | Create a directory (recursive by default) |
| `rmDir("./newDirName")` | Delete a directory (recursive by default) |

@@ -93,4 +93,4 @@ | `exists("./aFile.txt")` | Check if a file exists |

| `dirName("./path/file.txt")` | Return the directory name for a path |
| `__dirame` | Returns the absolute path (directory) containing the entry script (works inside of CommonJS or ES module) |
| `__filename` | Returns the name of the entry script (works inside of CommonJS or ES module) |
| `__dirname` | Returns the absolute path (directory) containing the **entry** script (works inside of CommonJS or ES module) |
| `__filename` | Returns the name of the **entry** script (works inside of CommonJS or ES module) |

@@ -97,0 +97,0 @@ **HTTP Requests** ([detailed docs below](#http-request-helpers))

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