SWF parser implemented in Typescript, for Node and browsers.
Converts bytes to swf-types
movies.
import fs from "fs";
import { Movie } from "swf-types";
import { parseSwf } from "swf-parser";
const bytes: Uint8Array = fs.readFileSync("movie.swf");
const movie: Movie = parseSwf(bytes);
This repo uses Git submodules for its test samples:
# Clone with submodules
git clone --recurse-submodules git://github.com/open-flash/swf-parser.git
# Update submodules for an already-cloned repo
git submodule update --init --recursive --remote
This library uses Gulp and npm for its builds, yarn is recommended for the
dependencies. The commands must be run from the ts
directory.
cd ts
yarn install
# work your changes...
yarn test
Prefer non-master
branches when sending a PR so your changes can be rebased if
needed. All the commits must be made on top of master
(fast-forward merge).
CI must pass for changes to be accepted.