0.1.1 • Published 9 years ago

lz4.jsx v0.1.1

Weekly downloads
4
License
Modified BSD Lice...
Repository
github
Last release
9 years ago

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

  • shibukawa.yoshiki / shibukawa.yoshiki@gmail.com

License

Modified BSD License (BSD 3-clause)

Complete license is written in LICENSE.md.