You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

swfpack

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swfpack

The tool to convert swf format between uncompressed/zlib/lzma.

1.2.1
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

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

Keywords

swf

FAQs

Package last updated on 16 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts