Comparing version 1.0.0 to 2.0.0
@@ -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 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4353
5