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

jsh

Package Overview
Dependencies
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsh - npm Package Compare versions

Comparing version 0.14.0 to 0.15.0

2

package.json
{
"name": "jsh",
"version": "0.14.0",
"version": "0.15.0",
"description": "Helpers for Bash like shell scripting in JavaScript",

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

@@ -231,5 +231,5 @@ # jsh

const filePath = "./my_image.jpg";
const imageStream = fs.createReadStream(filePath);
const data = fs.createReadStream(filePath);
const fileSize = fs.statSync(filePath).size;
await http.post("https://fakeimageserver.com/uploads", imageStream, {
await http.post("https://fakeimageserver.com/uploads", data, {
"Content-Type": "image/jpeg",

@@ -250,3 +250,2 @@ "Content-Length": fileSize,

| `User-Agent` | `jsh` |
| `Transfer-Encoding` | `chunked` when `data` parameter is a stream |

@@ -253,0 +252,0 @@ ### Error Handling

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc