tar-strip

0.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i tar-strip

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • wyvernnot