0.1.0 • Published 8 years ago

tar-strip v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

tar-strip

npm.io npm.io npm.io npm.io

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's strip-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

0.1.0

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago