tar-strip
v0.1.0
Published
Strip path components in a tar package
Downloads
1
Readme
tar-strip
Most tar package you download from github or gitlab will contain a root folder you may not want, this module will help you extract it out just like the
tar
command'sstrip-components
option.
Usage
var rs = getReadStream();
var ws = getWriteStream();
var stripPack = require('../').createStripPack();
getReadStream()
.pipe(stripPack)
.pipe(getWriteStream())
Tar package structure
Before:
master/index.js
master/package.json
master/README.md
After:
index.js
package.json
README.md
LICENSE
MIT