Socket
Socket
Sign inDemoInstall

zip-stream

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zip-stream - npm Package Compare versions

Comparing version 0.8.0 to 1.0.0

index.js

27

package.json
{
"name": "zip-stream",
"version": "0.8.0",
"version": "1.0.0",
"description": "a streaming zip archive generator.",

@@ -18,5 +18,5 @@ "homepage": "https://github.com/archiverjs/node-zip-stream",

"license": "MIT",
"main": "lib/zip-stream.js",
"main": "index.js",
"files": [
"lib"
"index.js"
],

@@ -27,15 +27,18 @@ "engines": {

"scripts": {
"test": "mocha --reporter dot"
"test": "mocha --reporter dot",
"gendocs": "jsdoc -c jsdoc.json readme.md"
},
"dependencies": {
"archiver-utils": "~0.3.0",
"compress-commons": "~0.4.0",
"lodash": "~3.10.1",
"readable-stream": "~2.0.0"
"archiver-utils": "^1.0.0",
"compress-commons": "^1.0.0",
"lodash": "^4.8.0",
"readable-stream": "^2.0.0"
},
"devDependencies": {
"chai": "~3.4.0",
"mocha": "~2.3.3",
"rimraf": "~2.4.3",
"mkdirp": "~0.5.0"
"chai": "^3.4.0",
"jsdoc": "^3.4.0",
"minami": "^1.1.0",
"mocha": "^2.3.3",
"rimraf": "^2.4.3",
"mkdirp": "^0.5.0"
},

@@ -42,0 +45,0 @@ "keywords": [

@@ -7,3 +7,3 @@ # zip-stream v0.8.0 [![Build Status](https://travis-ci.org/archiverjs/node-zip-stream.svg?branch=master)](https://travis-ci.org/archiverjs/node-zip-stream) [![Build status](https://ci.appveyor.com/api/projects/status/2sraarbaadwbtti2/branch/master?svg=true)](https://ci.appveyor.com/project/ctalkington/node-zip-stream/branch/master)

[![NPM](https://nodei.co/npm/zip-stream.png)](https://nodei.co/npm/zip-stream/)
Visit the [API documentation](http://archiverjs.com/zip-stream) for a list of all methods available.

@@ -44,56 +44,2 @@ ### Install

### Instance API
#### getBytesWritten()
Returns the current number of bytes written to this stream.
#### entry(input, data, callback(err, data))
Appends an input source (text string, buffer, or stream) to the instance. When the instance has received, processed, and emitted the input, the callback is fired.
#### finish()
Finalizes the instance. You should listen to the destination stream's `end`/`close`/`finish` event to know when all output has been safely consumed. (`finalize` is aliased for back-compat)
### Instance Options
#### comment `string`
Sets the zip comment.
#### store `boolean`
If true, all entry contents will be archived without compression by default.
#### zlib `object`
Passed to node's [zlib](http://nodejs.org/api/zlib.html#zlib_options) module to control compression. Options may vary by node version.
### Entry Data
#### name `string` `required`
Sets the entry name including internal path.
#### type `string`
Sets the entry type. Defaults to `file` or `directory` if name ends with trailing slash.
#### date `string|Date`
Sets the entry date. This can be any valid date string or instance. Defaults to current time in locale.
#### store `boolean`
If true, entry contents will be archived without compression.
#### comment `string`
Sets the entry comment.
#### mode `number`
Sets the entry permissions.
## Things of Interest

@@ -103,3 +49,3 @@

- [Contributing](https://github.com/archiverjs/node-zip-stream/blob/master/CONTRIBUTING.md)
- [MIT License](https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE-MIT)
- [MIT License](https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE)

@@ -106,0 +52,0 @@ ## Credits

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc