lz4.jsx
v0.1.1
Published
LZ4 compress, decompress library for JSX
Downloads
2
Maintainers
Readme
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.jsxIf you want to use this library from other JSX project, install like the following:
$ npm install lz4.jsx --save-devAPI 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 installRepository
- Repository: git://github.com/shibukawa/lz4.jsx.git
- Issues: https://github.com/shibukawa/lz4.jsx/issues
Run Test
$ grunt testBuild
$ grunt buildGenerate API reference
$ grunt docAuthor
- shibukawa.yoshiki / [email protected]
License
Modified BSD License (BSD 3-clause)
Complete license is written in LICENSE.md.
