Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/latentflip/explode
Explodes tars, and implodes dirs.
https://github.com/latentflip/explode
Last synced: 30 days ago
JSON representation
Explodes tars, and implodes dirs.
- Host: GitHub
- URL: https://github.com/latentflip/explode
- Owner: latentflip
- Created: 2013-02-01T10:53:36.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-02-01T11:15:54.000Z (almost 12 years ago)
- Last Synced: 2024-10-10T11:44:53.229Z (about 1 month ago)
- Language: JavaScript
- Size: 156 KB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# explode
`explode` (and `implode`) are command line utilities for creating and opening `.tar`, `.tar.gz`, `.tar.bz2` directories.Because life is too short for `tar -zxvfjwtf??!!`.
![tar](http://imgs.xkcd.com/comics/tar.png)
Inspired by [@harthvader](http://twitter.com/harthvader)'s [replace](https://github.com/harthur/replace) and http://xkcd.com/1168/
# Install
With [node.js](http://nodejs.org/) and [npm](http://github.com/isaacs/npm):npm install explode -g
You can now use `explode` and `implode` from the command line.
## Examples
### Explode
Extract foo.tar into ./foo
```
explode foo.tar
```Extract foo.tar into ~/bar
```
explode foo.tar ~/bar
```Extract foo.tar.gz
```
explode foo.tar.gz
```Extract foo.tar.bz2 into ./bar
```
explode foo.tar.bz2 bar
```### Implode
#### Implode creates tar files from directories, using the compression indicated by the filename.
Create a foo.tar from the bar directory
```
implode foo.tar bar
```Create a foo.tar.gz from the bar directory
```
implode foo.tar.gz bar
```Create a foo.tar.bz2 from the bar directory.
```
implode foo.tar.bz2 bar
```#### Implode is forgiving
If you just want to tar a directory, this will do what you expect
```
implode bar #=> creates bar.tar
```Getting the args the wrong way around works as you expect
```
implode foo bar.tar
```## Thanks
To Heather Arthur for creating [replace](https://github.com/harthur/replace), on which this is based.
## License
http://en.wikipedia.org/wiki/WTFPL