package-to-zip
v0.1.0
Published
Convert an npm package tarball to a zip file
Downloads
53
Readme
package-to-zip
Convert an npm package tarball to a zip file
Usage
import fs from 'fs';
import package2zip from 'package-to-zip';
package2zip(fs.createReadStream('./package.tgz'), { distOnly: true })
.pipe(fs.createWriteStream('./dist.zip'))
.on('finish', console.log('Done!');
Install
npm install package-to-zip --save
Test
npm install
npm test