1.2.1 • Published 7 years ago

swfpack v1.2.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

swfpack

Swfpack is a tool that convert swf format between uncompressed/zlib/lzma.

Installation

$ pip install pylzma # the node.js lzma module compress fail. I just rely on python module pylzma. it really ugly.
$ npm install swfpack

Usage

var swfpack = require('swfpack');

var converter = new swfpack(file); //  file <String>|<Buffer>
var buffer_pomise = converter.pack('fws'); // fws (uncompressed)
var buffer_pomise = converter.pack('cws'); // cws (compressed by using the ZLIB open standard)
var buffer_pomise = converter.pack('zws'); // zws (compressed by using the LZMA open standard), lzma level 1-9

buffer_pomise.then(function() (buffer) {
    fs.writeFileSync('/path/to/lzma.swf', buffer);
}).catch(function(reason) {
    console.log(reason)
});

#License MIT

1.2.1

7 years ago

1.2.0

7 years ago

1.1.5

7 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago