Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
decompress-tar
Advanced tools
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.
tar decompress plugin
$ npm install --save decompress-tar
const decompress = require('decompress');
const decompressTar = require('decompress-tar');
decompress('unicorn.tar', 'dist', {
plugins: [
decompressTar()
]
}).then(() => {
console.log('Files decompressed');
});
Returns both a Promise for a Buffer and a Duplex stream.
Type: Buffer
Stream
Buffer or stream to decompress.
MIT © Kevin Mårtensson
FAQs
decompress tar plugin
The npm package decompress-tar receives a total of 1,175,630 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.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.