webzip

1.0.0 • Public • Published

WebZip

Get a file inside a zip url

npm i webzip

Usage

const webzip = require('webzip');

const zipUrl = 'https://accounts.clickbank.com/feeds/marketplace_feed_v2.xml.zip';
// file inside .zip
const file = 'marketplace_feed_v2.xml';

const products = webzip(zipUrl, file);

products.then(function (fileBuffer) {
  const content = fileBuffer.toString('utf8');
  console.log(content);
});

Readme

Keywords

none

Package Sidebar

Install

npm i webzip

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

2.08 kB

Total Files

3

Last publish

Collaborators

  • jazzcript