Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

shescape

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shescape - npm Package Compare versions

Comparing version 0.4.1 to 1.0.0

6

CHANGELOG.md

@@ -12,2 +12,8 @@ # Changelog

## [1.0.0] - 2020-12-10
- (!) Remove ability to call `shescape()` directly.
- (!) Automatically convert input to array in `quoteAll()`.
- Fix numbering in documentation's "Install" section.
## [0.4.1] - 2020-12-09

@@ -14,0 +20,0 @@

10

index.js

@@ -5,10 +5,2 @@ const os = require("os");

module.exports = function (arg) {
console.warn(
"calling shescape() directly is deprecated since v0.3.1 and will be removed in v1.0.0"
);
const platform = os.platform();
return main.escapeShellArgByPlatform(arg, platform);
};
module.exports.escape = function (arg) {

@@ -25,3 +17,3 @@ const platform = os.platform();

module.exports.quoteAll = function (args) {
if (!Array.isArray(args)) return args;
if (!Array.isArray(args)) args = [args];

@@ -28,0 +20,0 @@ const platform = os.platform();

{
"name": "shescape",
"version": "0.4.1",
"version": "1.0.0",
"description": "simple shell escape library",

@@ -5,0 +5,0 @@ "homepage": "https://ericcornelissen.github.io/shescape/",

@@ -8,5 +8,6 @@ # Security Policy

| Version | Supported |
| ------- | ------------------ |
| < 1.0.0 | :white_check_mark: |
| Version | Supported | Until |
| ------- | ------------------ | ---------------- |
| 1.x.x | :white_check_mark: | _current_ |
| < 1.0.0 | :white_check_mark: | 01 February 2021 |

@@ -13,0 +14,0 @@ ## Reporting a Vulnerability

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc