Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 17, 2024 via pnpm

tar-fs 3.0.4

filesystem bindings for tar-stream
Package summary
Share
0
issues
3
licenses
8
MIT
2
Apache-2.0
2
ISC
Package created
21 Dec 2013
Version published
2 Jul 2023
Maintainers
2
Total deps
12
Direct deps
3
License
MIT

Issues

0
This package has no issues

Licenses

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
8 Packages, Including:
end-of-stream@1.4.4
fast-fifo@1.3.2
mkdirp-classic@0.5.3
pump@3.0.0
queue-tick@1.0.1
streamx@2.16.1
tar-fs@3.0.4
tar-stream@3.1.7

Apache License 2.0

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
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
2 Packages, Including:
b4a@1.6.6
bare-events@2.2.2

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
2 Packages, Including:
once@1.4.0
wrappy@1.0.2
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

3
All Dependencies CSV
β“˜ This is a list of tar-fs 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
mkdirp-classic0.5.31.91 kBMIT
prod
pump3.0.03.16 kBMIT
prod
tar-stream3.1.79.54 kBMIT
prod

Visualizations

Frequently Asked Questions

What does tar-fs do?

Tar-fs is an npm package that provides filesystem bindings for tar-stream. It is designed to pack directories into tarballs and extract tarballs into directories. It is ideal for handling tarball files in JavaScript applications, but note that it does not support gunzip on its own. To work with .tar.gz files, it is recommended to use another utility, such as gunzip-maybe, in conjunction with tar-fs.

How do you use tar-fs?

Using tar-fs is relatively straightforward. After installing the package via npm with npm install tar-fs, you can incorporate it into your project with the required statement like const tar = require('tar-fs').

Here is an example of how to use tar-fs to pack a directory into a tarball:

const tar = require('tar-fs')
const fs = require('fs')

// packing a directory
tar.pack('./my-directory').pipe(fs.createWriteStream('my-tarball.tar'))

And to extract a tarball into a directory, use the following:

// extracting a directory
fs.createReadStream('my-other-tarball.tar').pipe(tar.extract('./my-other-directory'))

It also provides additional options like filtering specific files when packing or extracting, defining entries to pack, modifying the headers, altering input/output file streams, setting file/directory modes, and more.

Where are the tar-fs docs?

Documentation and examples for tar-fs can be found in the README file in its GitHub repository at https://github.com/mafintosh/tar-fs.git. This README includes details about the package's functions and options, as well as code examples. For an intensive understanding of the tar-fs package and its full capabilities, it is a great resource.