Giter VIP home page Giter VIP logo

express-easy-zip's People

Contributors

blazzike avatar tanhauhau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

express-easy-zip's Issues

Error [ERR_STREAM_WRITE_AFTER_END]: write after end while zipping large directories

I worked around it by commending out the _this.end() call.

Error [ERR_STREAM_WRITE_AFTER_END]: write after end
at write_ (_http_outgoing.js:572:17)
at ServerResponse.write (_http_outgoing.js:567:10)
at module.exports.ondata (node_modules/readable-stream/lib/_stream_readable.js:619:20)
at module.exports.emit (events.js:182:13)
at module.exports.Readable.read (node_modules/readable-stream/lib/_stream_readable.js:469:26)
at flow (node_modules/readable-stream/lib/_stream_readable.js:813:34)
at ServerResponse. (node_modules/readable-stream/lib/_stream_readable.js:683:7)
at ServerResponse.emit (events.js:182:13)
at Socket.ondrain (internal/http.js:21:44)
at Socket.emit (events.js:187:15)
at onwriteDrain (_stream_writable.js:490:12)
at afterWrite (_stream_writable.js:478:5)
at onwrite (_stream_writable.js:471:7)
at WriteWrap.afterWrite [as oncomplete] (net.js:848:19)
Emitted 'error' event at:
at writeAfterEndNT (_http_outgoing.js:631:7)
at process._tickCallback (internal/process/next_tick.js:63:19)

Why limit file contents to just strings?

Hello.
I have a situation where I want to zip a buffer that contains binary data.
I tested the file with the underlying library (zip-stream) and it works correctly without problem. However, you only accept strings as input, and your library deletes any content that is not a string:

return new Promise(function(resolve, reject) {
data = clean.cleanOnlyString(data);

Why this limitation when the zip-stream library is capable of handling Buffer | Stream | String?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.