SWF Extract
Extract resources from SWF files.
For now this project aims at extracting image data from SWF files. More things would be implemented in future.
Installation
$ npm install swf-extract
Usage
const readFromBufferP extractImages = // `rawData` could come from file, network, etc.// as long as it end up being a Buffer.const rawData = fs async { const swf = await // the result of calling `extractImages` resolves to an Array of Promises const ts = await Promiseall console}
Acknowledgement
This project cannot be possible without work from the following 3 packages:
The original author is Rafael Leal Dias, who works out most of the parsing logics.
Then it's modified & improved by Gizeta to include many supports and bug fixes,
who is also the author of swf-image-extractor
,
which provides the original implementation of image extraction from SWF files.
License
MIT