UNPKG

zip-iterator

Version:

Extract contents from zip archive type using an iterator API using streams or paths. Use stream interface and pipe transforms to add decompression algorithms

10 lines (9 loc) 297 B
require('buffer-v6-polyfill'); const stream = require('stream'); if (!stream.Readable) { const patch = require('readable-stream'); stream.Readable = patch.Readable; stream.Writable = patch.Writable; stream.Transform = patch.Transform; stream.PassThrough = patch.PassThrough; }