package-to-zip

0.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i package-to-zip

Weekly Downloads

3

Version

0.1.0

License

MIT

Last publish

Collaborators

  • bealearts