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

decompress

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

decompress - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

31

cli.js

@@ -14,15 +14,14 @@ #!/usr/bin/env node

var cli = meow({
requireInput: process.stdin.isTTY,
help: [
' Usage',
' decompress <file> [directory]',
' cat <file> | decompress [directory]',
'Usage',
' decompress <file> [directory]',
' cat <file> | decompress [directory]',
'',
' Example',
' decompress --strip 1 file.zip out',
' cat file.zip | decompress out',
'Example',
' decompress --strip 1 file.zip out',
' cat file.zip | decompress out',
'',
' Options',
' -m, --mode Set mode on the extracted files',
' -s, --strip Equivalent to --strip-components for tar'
'Options',
' -m, --mode Set mode on the extracted files',
' -s, --strip Equivalent to --strip-components for tar'
].join('\n')

@@ -93,2 +92,14 @@ }, {

if (!src.length) {
console.error([
'Specify a file to decompress',
'',
'Example',
' decompress --strip 1 file.zip out',
' cat file.zip | decompress out'
].join('\n'));
process.exit(1);
}
if (!isFile(src[src.length - 1])) {

@@ -95,0 +106,0 @@ dest = src[src.length - 1];

@@ -78,2 +78,10 @@ 'use strict';

cb = cb || function () {};
if (!this.streams.length) {
this.use(Decompress.tar(this.opts));
this.use(Decompress.tarbz2(this.opts));
this.use(Decompress.targz(this.opts));
this.use(Decompress.zip(this.opts));
}
this.streams.unshift(this.read(this.src()));

@@ -80,0 +88,0 @@

{
"name": "decompress",
"version": "2.1.0",
"version": "2.1.1",
"description": "Extracting archives made easy",

@@ -43,3 +43,3 @@ "license": "MIT",

"get-stdin": "^3.0.0",
"meow": "^1.0.0",
"meow": "^2.0.0",
"stream-combiner": "^0.2.1",

@@ -46,0 +46,0 @@ "through2": "^0.6.1",

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