• Stars
    star
    424
  • Rank 102,329 (Top 3 %)
  • Language
    JavaScript
  • License
    Other
  • Created about 13 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

GZIP implemented in pure JavaScript

Intro

gzip-js is a pure JavaScript implementation of the GZIP file format. It uses the DEFLATE algorithm for compressing data.

Please note that since this is a pure JavaScript implementation, it should NOT be used on the server for production code. It also does not comply 100% with the standard, yet.

The main goal of this project is to bring GZIP compression to the browser.

API

There is only one function so far, zip:

function zip(data[, options])

  • data- String of text or byte array to compress
  • options- object with options; options include:
    • level- compression level (1-9); default 6
    • timestamp- UNIX timestamp (seconds); if omitted, the current time will be used
    • name- optional; original name of the file

Sample usage:

var gzip = require('gzip-js'),
	options = {
		level: 3,
		name: 'hello-world.txt',
		timestamp: parseInt(Date.now() / 1000, 10)
	};

// out will be a JavaScript Array of bytes
var out = gzip.zip('Hello world', options);

More Repositories

1

base64-js

Base64 encoding/decoding in pure JS
JavaScript
823
star
2

simple-pam

Basic PAM module and test application
C
176
star
3

rtsp

rtsp implementation in Go
Go
113
star
4

tar-js

Tar implemented in the browser
JavaScript
86
star
5

pam-http

Simple pam module that uses HTTPS authentication
C
59
star
6

node-coordinator

Converts between GPS coordinate systems
JavaScript
38
star
7

node-filesync

Synchronizes files from client to server using node for both client and server
JavaScript
30
star
8

crc32

Crc32 implemented in JavaScript
JavaScript
24
star
9

tar-async

Asynchronous Tar implemented in node
JavaScript
19
star
10

arduino-tcp-server

Arduino- TCP server that controls a servo with a WebSocket-like API
Arduino
9
star
11

eventhub

Message passing in node with EventEmitters
JavaScript
8
star
12

luna

Go library for interfacing with Lua
Go
8
star
13

cast

Attempts to solve the problem of unintuitive data types in JavaScript
JavaScript
6
star
14

dart-cookies

Dart cookie parser
Dart
5
star
15

updating-server

Self-updating server that runs as a daemon through systemd
JavaScript
5
star
16

toDataURL

Download practically anything using only browser-side JS
JavaScript
5
star
17

libcanvas

Adds convenience methods to aid in drawing to the HTML5 canvas
JavaScript
4
star
18

mgo-rest

REST interface for MongoDB using the mgo library
Go
4
star
19

construct

Calls a constructor with an arbitrary number of arguments.
JavaScript
4
star
20

artichoke

HTTP framework for Go (based on connect for Nodejs)
Go
4
star
21

mediatags

Generates JSON from ID3 tags
C++
4
star
22

gotables

Simple replacement for iptables for port forwarding
Go
3
star
23

atomicparsley

Fork from Bitbucket that includes JSON output support
C++
3
star
24

node-intercept

Connect module that intercepts ServerResponse calls
JavaScript
3
star
25

node-squish

Squish your outputs using whatever compression you desire
JavaScript
3
star
26

nutrient-database-parser

Parses the ASCII values in the ARS branch of the USDA
JavaScript
3
star
27

universal-turing-machines

Implementations of universal turing machines
JavaScript
3
star
28

gamepad-api-polyfill

HTML5 Gamepad API polyfill
JavaScript
2
star
29

task-warrior-am

Task Warrior mobile app using inthe.am API
JavaScript
2
star
30

filesync-client

Client for filesync, a file-synchronization daemon built on nodejs
JavaScript
2
star
31

stein

The best way to consume TAP
Go
2
star
32

tcpmux

Run multiple TCP services on the same port
Go
2
star
33

beatgammit.github.com

1
star
34

cs360contacts

Presentation about Google App Engine
JavaScript
1
star
35

cs240

All of my projects for CS240
C++
1
star
36

viaduct

C WAMP library targeted at embedded platforms
C
1
star
37

sandbox

Sandbox for errors, proofs of concept, and other cool stuffs
Go
1
star
38

semver

Semantic versions in Go
Go
1
star
39

make-me-a-sandwich

http://xkcd.com/149/
Python
1
star
40

dpm

D package manager, based on node's npm
D
1
star
41

wopi-rs

Rust implementation of MS-WOPI
Rust
1
star
42

amortization

Simple CLI application for calculating amortization table
Rust
1
star
43

json-d

JSON parser written in D
D
1
star
44

netlion

Graphical network debugging tool
Rust
1
star
45

jscolor

Fork of http://jscolor.com that detects if it's needed
JavaScript
1
star
46

cs236-labs

My solution to the labs in my CS 236 class at BYU
Java
1
star