ex-tar
v1.0.3
Published
cli tar extract via npx tar-e <filename> [target]
Downloads
42
Readme
ex-tar
.tar and .tar.gz / .tgz extractor
A command line tool for when you just want to unpack something quickly without remembering flags
you dont have access to tar
Usage
npx ex-tar <arhive> [target]
|name |desc | |-----|--------| |archive|requiredarchive to be unpacked| |target|optionalomitted - use current directorydestination folder, will be created if doesnt exist|
Notes
it wont write outside the target directory
you can test it
online nodejs terminal -- https://ext-code.com/utils/misc/terminal/terminal.html
download a tarball
npm pack <package>
Features
ex-taris a no-fuss tarball extractor- Extracts
.tarand.tar.gz/.tgz - Pure JavaScript — works on Windows, macOS, Linux, and WebContainers
- No global install required
- No flags, configuration or options to remember
- Automatically detects gzip compression
- Extracts into the current working directory if [target] is omitted, creates directory if it does not exist
Examples
Extract a .tar:
npx ex-tar archive.tar
npx ex-tar archive.tar ./archive
Extract a .tar.gz:
npx ex-tar archive.tar.gz
npx ex-tar archive.tar.gz ./archive
Why this exists
Sometimes you just want:
- one file
- one command
- one job
…and you don’t want to install a full tar implementation or deal with platform quirks.
ex-tar is intentionally small and predictable so you can use it anywhere without thinking
