Home / npm packages / tar

tar source code

Every file of tar@7.5.22 as published on npm: 127 files, 699 KB. Search them by exact text or regex, in milliseconds.

It uses: process.env, the fs module, crypto.

What tar uses

APIIn tar
eval()
runs a string as JavaScript
NoWho does
new Function()
builds a function from a string, like eval (with or without new)
NoWho does
child_process
starts other programs
NoWho does
process.env
reads environment variables
Yes: 12 files
e.g. dist/commonjs/get-write-flag.js
See the lines
the fs module
reads and writes files
Yes: 25 files
e.g. dist/commonjs/extract.js
See the lines
http / https
makes or serves HTTP requests with Node's own modules
NoWho does
fetch()
makes HTTP requests
NoWho does
XMLHttpRequest
makes HTTP requests the old browser way
NoWho does
crypto
hashes, encrypts or makes random numbers
Yes: 3 files
e.g. dist/commonjs/index.min.js
See the lines
WebAssembly
loads WebAssembly code
NoWho does
document.cookie
reads or writes browser cookies
NoWho does
install scripts
runs a script when it's installed
NoWho does

Exact matches in the published files, so a mention in a comment counts too: open the lines to check.

Largest files

FileSize
dist/commonjs/index.min.js103 KB
dist/esm/index.min.js84 KB
README.md52 KB
dist/commonjs/unpack.js36 KB
dist/esm/unpack.js33 KB
dist/commonjs/write-entry.js25 KB
dist/commonjs/parse.js25 KB
dist/esm/parse.js24 KB
dist/commonjs/options.d.ts24 KB
dist/esm/options.d.ts24 KB
dist/esm/write-entry.js23 KB
dist/commonjs/pack.js18 KB
dist/esm/pack.js16 KB
dist/commonjs/header.js14 KB
dist/esm/header.js13 KB
package.json7.8 KB
dist/commonjs/replace.js7.7 KB
dist/esm/replace.js7.1 KB
dist/commonjs/mkdir.js6.8 KB
dist/commonjs/path-reservations.js5.7 KB
dist/esm/mkdir.js5.7 KB
dist/commonjs/list.js5.6 KB
dist/esm/path-reservations.js5.4 KB
dist/commonjs/pax.js5.4 KB
dist/esm/pax.js5.2 KB
dist/commonjs/make-command.d.ts4.7 KB
dist/esm/make-command.d.ts4.7 KB
dist/commonjs/write-entry.d.ts4.4 KB
dist/esm/write-entry.d.ts4.4 KB
dist/commonjs/read-entry.js4.4 KB

Questions

How many files are in tar?

Version 7.5.22 of tar publishes 127 files of source, 699 KB in all, not counting images, fonts and source maps.

Does tar use eval?

No: tar doesn't call eval() anywhere in its published files.

Does tar start other programs?

No: tar doesn't use child_process anywhere in its published files.

Does tar run an install script?

No: tar has no preinstall, install or postinstall script in its package.json.

npm packages that use…

Every package we've indexed →

Search your own code like this

The same engine answers over your documents and repositories: exact text and regex, every match counted, from your code or your AI agent.

See StackGrep Engine