![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
decompress-tar
Advanced tools
Package description
The decompress-tar npm package is a module designed to decompress tarball files (.tar). It is often used in conjunction with other decompression modules to handle different compression formats. The package provides a simple API for extracting files from a tar archive.
Decompress tar files
This feature allows you to decompress .tar files. The code sample shows how to use the decompress-tar plugin with the decompress module to extract files from a tar archive to a specified directory.
const decompress = require('decompress');
const decompressTar = require('decompress-tar');
decompress('unicorn.tar', 'dist', {
plugins: [
decompressTar()
]
}).then(files => {
console.log('Files decompressed successfully!');
});
The 'tar' package provides the ability to create, extract, and manipulate tarball archives. It has a more comprehensive feature set for handling tar files compared to decompress-tar, which is specifically for decompression.
The 'tar-fs' package allows for packing and extracting tarball filesystem streams. It is similar to decompress-tar but also supports packing, and it works with the file system directly.
The 'unzipper' package is for extracting .zip files. While it is not for tar files, it provides similar decompression functionality for a different archive format.
Readme
tar decompress plugin
$ npm install --save decompress-tar
var Decompress = require('decompress');
var tar = require('decompress-tar');
var decompress = new Decompress()
.src('foo.tar')
.dest('dest')
.use(tar({strip: 1}));
decompress.run(function (err, files) {
if (err) {
throw err;
}
console.log('Files extracted successfully!');
});
You can also use this plugin with gulp:
var gulp = require('gulp');
var tar = require('decompress-tar');
var vinylAssign = require('vinyl-assign');
gulp.task('default', function () {
return gulp.src('foo.tar')
.pipe(vinylAssign({extract: true}))
.pipe(tar({strip: 1}))
.pipe(gulp.dest('dest'));
});
Type: Number
Default: 0
Equivalent to --strip-components
for tar.
MIT © Kevin Mårtensson
FAQs
decompress tar plugin
The npm package decompress-tar receives a total of 2,685,070 weekly downloads. As such, decompress-tar popularity was classified as popular.
We found that decompress-tar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.