Skip to content

shibukawa/lz4.jsx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lz4.jsx

Synopsis

LZ4 decompress library for JSX

Code Example

Use from JSX

import "lz4_decoder.jsx";

class _Main {
    static function main(argv : string[]) : void
    {
        var input : ArrayBuffer;
        /*
         : initialize ArrayBuffer
         */

        var decoder = new Lz4Decoder();
        var output : ArrayBuffer = decoder.decode(input);
    }
}

Installation

$ npm install lz4.jsx

If you want to use this library from other JSX project, install like the following:

$ npm install lz4.jsx --save-dev

API Reference

class Lz4Decoder

function (input : ArrayBuffer) : ArrayBuffer

Development

JSX

Don't be afraid JSX! If you have an experience of JavaScript, you can learn JSX quickly.

  • Static type system and unified class syntax.
  • All variables and methods belong to class.
  • JSX includes optimizer. You don't have to write tricky unreadalbe code for speed.
  • You can use almost all JavaScript API as you know. Some functions become static class functions. See reference.

Setup

To create development environment, call following command:

$ npm install

Repository

Run Test

$ grunt test

Build

$ grunt build

Generate API reference

$ grunt doc

Author

License

Modified BSD License (BSD 3-clause)

Complete license is written in LICENSE.md.

About

LZ4 decompress code for pure JavaScript environment by using altJS JSX

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published