is-gzip
Check if a Buffer/Uint8Array is a GZIP file
Install
$ npm install is-gzip
Usage
const fs = require('fs');
const isGzip = require('is-gzip');
isGzip(fs.readFileSync('foo.tar.gz'));
//=> true
License
MIT © Kevin Mårtensson
License |
License |
---|---|
GroupId | GroupIdorg.webjars.npm |
ArtifactId | ArtifactIdis-gzip |
Last Version | Last Version1.0.0 |
Release Date | Release Date |
Type | Typejar |
Description |
Descriptionis-gzip
WebJar for is-gzip
|
Project URL |
Project URL |
Source Code Management |
Source Code Management |
Filename | Size |
---|---|
is-gzip-1.0.0.pom | |
is-gzip-1.0.0.jar | 3 KB |
is-gzip-1.0.0-sources.jar | 22 bytes |
is-gzip-1.0.0-javadoc.jar | 22 bytes |
Browse |
<!-- https://jarcasting.com/artifacts/org.webjars.npm/is-gzip/ -->
<dependency>
<groupId>org.webjars.npm</groupId>
<artifactId>is-gzip</artifactId>
<version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/is-gzip/
implementation 'org.webjars.npm:is-gzip:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/is-gzip/
implementation ("org.webjars.npm:is-gzip:1.0.0")
'org.webjars.npm:is-gzip:jar:1.0.0'
<dependency org="org.webjars.npm" name="is-gzip" rev="1.0.0">
<artifact name="is-gzip" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='is-gzip', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "is-gzip" % "1.0.0"
[org.webjars.npm/is-gzip "1.0.0"]
Check if a Buffer/Uint8Array is a GZIP file
$ npm install is-gzip
const fs = require('fs');
const isGzip = require('is-gzip');
isGzip(fs.readFileSync('foo.tar.gz'));
//=> true
MIT © Kevin Mårtensson