tiny-inflate

WebJar for tiny-inflate

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

tiny-inflate
Last Version

Last Version

1.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

tiny-inflate
WebJar for tiny-inflate
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/foliojs/tiny-inflate

Download tiny-inflate

How to add to project

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

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.

tiny-inflate

This is a port of Joergen Ibsen's tiny inflate to JavaScript. Minified it is about 3KB, or 1.3KB gzipped. While being very small, it is also reasonably fast (about 30% - 50% slower than pako on average), and should be good enough for many applications. If you need the absolute best performance, however, you'll need to use a larger library such as pako that contains additional optimizations.

Installation

npm install tiny-inflate

Example

To use tiny-inflate, you need two things: a buffer of data compressed with deflate, and the decompressed size (often stored in a file header) to allocate your output buffer. Input and output buffers can be either node Buffers, or Uint8Arrays.

var inflate = require('tiny-inflate');

var compressedBuffer = new Bufer([ ... ]);
var decompressedSize = ...;
var outputBuffer = new Buffer(decompressedSize);

inflate(compressedBuffer, outputBuffer);

License

MIT

org.webjars.npm
📃 Typography and Page Layout in JavaScript

Versions

Version
1.0.3
1.0.2