is-deflate

WebJar for is-deflate

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

is-deflate
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

is-deflate
WebJar for is-deflate
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/watson/is-deflate

Download is-deflate

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/is-deflate/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>is-deflate</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/is-deflate/
implementation 'org.webjars.npm:is-deflate:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/is-deflate/
implementation ("org.webjars.npm:is-deflate:1.0.0")
'org.webjars.npm:is-deflate:jar:1.0.0'
<dependency org="org.webjars.npm" name="is-deflate" rev="1.0.0">
  <artifact name="is-deflate" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='is-deflate', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "is-deflate" % "1.0.0"
[org.webjars.npm/is-deflate "1.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

is-deflate

Check if a given Buffer or Uint8Array is deflate compressed.

Build status js-standard-style

Installation

npm install is-deflate --save

Usage

var fs = require('fs')
var zlib = require('zlib')
var isDeflate = require('is-deflate')

var buf = fs.readFileSync('my-file')

if (isDeflate(buf)) {
  zlib.inflate(buf, function (err, data) {
    if (err) throw err
    console.log(data)
  })
}

License

MIT

Versions

Version
1.0.0