Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

inflation

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inflation - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

HISTORY.md

7

index.js

@@ -7,2 +7,6 @@

function inflate(stream, options) {
if (!stream) {
throw new TypeError('argument stream is required')
}
options = options || {}

@@ -26,3 +30,6 @@

// no not pass-through encoding
delete options.encoding
return stream.pipe(zlib.Unzip(options))
}

25

package.json
{
"name": "inflation",
"description": "Easily unzip an HTTP stream",
"version": "1.0.1",
"author": {
"name": "Jonathan Ong",
"email": "me@jongleberry.com",
"url": "http://jongleberry.com",
"twitter": "https://twitter.com/jongleberry"
},
"version": "1.0.2",
"author": "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)",
"license": "MIT",

@@ -19,3 +14,17 @@ "repository": "stream-utils/inflation",

"gunzip"
]
],
"devDependencies": {
"istanbul": "0.2.10",
"mocha": "~1.20.1",
"readable-stream": "~1.0.27",
"should": "4.0.4"
},
"engines": {
"node": ">= 0.8.0"
},
"scripts": {
"test": "mocha --reporter spec --bail test/",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot test/",
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec test/"
}
}

@@ -0,6 +1,9 @@

# inflation
# Inflation
[![NPM version](https://badge.fury.io/js/inflation.svg)](http://badge.fury.io/js/inflation)
[![Build Status](https://travis-ci.org/stream-utils/inflation.svg?branch=master)](https://travis-ci.org/stream-utils/inflation)
[![Coverage Status](https://img.shields.io/coveralls/stream-utils/inflation.svg?branch=master)](https://coveralls.io/r/stream-utils/inflation)
Automatically unzip an HTTP stream.
Useful when used with [raw-body](https://github.com/stream-utils/raw-body) or [write-to](https://github.com/stream-utils/write-to).
Useful when used with [inflation](https://github.com/stream-utils/inflation) or [write-to](https://github.com/stream-utils/write-to).

@@ -11,3 +14,3 @@ ## Example

var inflate = require('inflation')
var raw = require('raw-body')
var raw = require('inflation')

@@ -14,0 +17,0 @@ http.createServer(function (req, res) {

Sorry, the diff of this file is not supported yet

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