lz4.jsx

0.1.1 • Public • Published

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.

Package Sidebar

Install

npm i lz4.jsx

Weekly Downloads

1

Version

0.1.1

License

Modified BSD License (BSD 3-clause)

Last publish

Collaborators

  • shibu