Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Feb 19, 2024 via pnpm

tar 6.1.6

tar for node
Package summary
Share
6
issues
6
high severity
vulnerability
6
2
licenses
5
ISC
2
MIT
Package created
20 Nov 2011
Version published
4 Aug 2021
Maintainers
6
Total deps
7
Direct deps
6
License
ISC

Licenses

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
5 Packages, Including:
chownr@2.0.0
fs-minipass@2.1.0
minipass@3.3.6
tar@6.1.6
yallist@4.0.0

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
minizlib@2.1.2
mkdirp@1.0.4
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

6
All Dependencies CSV
β“˜ This is a list of tar 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
chownr2.0.02.19 kBISC
prod
fs-minipass2.1.04.43 kBISC
prod
minipass3.3.614.98 kBISC
prod
minizlib2.1.26.01 kBMIT
prod
mkdirp1.0.46.51 kBMIT
prod
yallist4.0.04.39 kBISC
prod

Visualizations

Frequently Asked Questions

What does tar do?

"Tar" for Node.js is a fully-featured, fast archive utility. It is designed to mimic the tar(1) command's behavior on Unix systems by creating an archive of file system entries, which may include directories, files, links, etc. The name "tar" comes from "tape archive". It's created with an API allowing it to handle five main upper-level commands relating to creating, replacing, updating, listing, and extracting content from an archive. Tar is a particularly flexible and powerful tool in various coding situations, especially when dealing with large amounts of data.

How do you use tar?

The usage of "tar" differs depending on the specific action you want to perform on an archive. Here are usage examples for the main commands:

  • To create an archive:
const tar = require('tar');
tar.c(
  {
    gzip: true,
    file: 'my-tarball.tgz'
  },
  ['file1', 'file2', 'directory']
).then(() => {
  console.log('Tarball has been created.');
});
  • To extract an archive:
tar.x({
  file: 'my-tarball.tgz'
}).then(() => {
  console.log('Tarball has been extracted.');
});
  • To list out the contents of an archive:
tar.t({
  file: 'my-tarball.tgz',
  onentry: entry => console.log(entry.path)
});

The options object in each method can be used to further customize operation's behavior.

Where are the tar docs?

The documentation for the `