Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Compressor adapter `lzf` for `node-document` ODM for Node.js.
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
lib
test
.env
.gitignore
.travis.yml
MIT-LICENSE
Makefile
README.md
index.js
package.json

README.md

NODE-DOCUMENT-COMPRESSOR-LZF Build Status

Compressor adapter lzf for node-document ODM for Node.js.

Installation

  $ npm install node-document-compressor-lzf

Usage

Basic:

  var Compressor = require('node-document-compressor-lzf');

  var Compressor = require('..');

  var compressor = new Compressor();

  var object = {foo: "bar"}, data;

  console.log("Object: ", require('util').inspect(object), typeof object);

  data = compressor.compress(object);

  console.log("Compressed: ", require('util').inspect(data), typeof data);

  object = compressor.decompress(data);

  console.log("Decompressed: ", require('util').inspect(object), typeof object);

For details; see node-document.

Test

Local tests:

  $ make test

License

Released under the MIT license.

Copyright (c) Jonas Grimfelt

Bitdeli Badge

Something went wrong with that request. Please try again.