Socket
Socket
Sign inDemoInstall

gzip-size

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gzip-size - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

license

4

index.js

@@ -11,3 +11,3 @@ 'use strict';

gzip(str, function (err, data) {
gzip(str, {level: 9}, function (err, data) {
if (err) {

@@ -23,3 +23,3 @@ cb(err, 0);

module.exports.sync = function (str) {
return gzipSync(str).length;
return gzipSync(str, {level: 9}).length;
};
{
"name": "gzip-size",
"version": "1.0.0",
"version": "2.0.0",
"description": "Get the gzipped size of a string or buffer",
"license": "MIT",
"repository": "sindresorhus/gzip-size",
"bin": {
"gzip-size": "cli.js"
},
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
"url": "sindresorhus.com"
},
"bin": "cli.js",
"engines": {

@@ -26,2 +24,3 @@ "node": ">=0.10.0"

"keywords": [
"cli-app",
"cli",

@@ -28,0 +27,0 @@ "bin",

@@ -74,3 +74,3 @@ # gzip-size [![Build Status](https://travis-ci.org/sindresorhus/gzip-size.svg?branch=master)](https://travis-ci.org/sindresorhus/gzip-size)

```sh
$ pretty-bytes $(gzip-size jquery.min.js)
$ gzip-size jquery.min.js | pretty-bytes
29.34 kB

@@ -77,0 +77,0 @@ ```

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