Comparing version 0.1.0 to 1.0.0
@@ -11,3 +11,3 @@ 'use strict'; | ||
module.exports = function (buf) { | ||
if (!buf || buf.length < 4) { | ||
if (!buf || buf.length < 3) { | ||
return false; | ||
@@ -14,0 +14,0 @@ } |
{ | ||
"name": "is-gzip", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"description": "Check if a Buffer/Uint8Array is a GZIP file", | ||
@@ -16,4 +16,3 @@ "license": "MIT", | ||
"scripts": { | ||
"browser": "browserify -s $npm_package_name -o browser.js .", | ||
"test": "mocha --reporter list" | ||
"test": "node test/test.js" | ||
}, | ||
@@ -33,5 +32,6 @@ "files": [ | ||
"devDependencies": { | ||
"browserify": "^3.44.2", | ||
"mocha": "^1.18.2" | ||
"ava": "0.0.4", | ||
"mocha": "^1.18.2", | ||
"read-chunk": "^1.0.0" | ||
} | ||
} |
@@ -7,22 +7,13 @@ # is-gzip [![Build Status](https://travis-ci.org/kevva/is-gzip.svg?branch=master)](https://travis-ci.org/kevva/is-gzip) | ||
```bash | ||
```sh | ||
$ npm install --save is-gzip | ||
``` | ||
```bash | ||
$ component install kevva/is-gzip | ||
``` | ||
```bash | ||
$ bower install --save is-gzip | ||
``` | ||
## Usage | ||
```js | ||
var fs = require('fs'); | ||
var isGzip = require('is-gzip'); | ||
var buf = fs.readFileSync('foo.tar.gz'); | ||
var read = require('fs').readFileSync; | ||
isGzip(buf); | ||
isGzip(read('foo.tar.gz')); | ||
// => true | ||
@@ -29,0 +20,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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
1382
3
24