JSPM

ziparchive

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q30868F
  • License MIT

Library for handling ZIP archive streams

Package Exports

  • ziparchive

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ziparchive) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ziparchive

JavaScript Library (native JS with alternate C++ implementation coming soon!) for dealing with ZIP archives.

To Install

npm i --save ziparchive

Usage

Right now, only extractFirstFile works (and only with DEFLATE compressed ZIPs).

const { extractFirstFile } = require('ziparchive');
extractFirstFile('./myfile.zip')
  .then(buffer => { ... do something ... })
  .catch(console.error);

License

Open Source under the MIT license. Contributions are welcome.