0.14.0 • Published 3 years ago

swf-emitter v0.14.0

Weekly downloads
4
License
-
Repository
github
Last release
3 years ago

SWF Emitter (Typescript)

npm GitHub repository Build status

SWF emitter implemented in Typescript, for Node and browsers. Converts swf-types movies to bytes.

Usage

import fs from "fs";
import { CompressionMethod } from "swf-types";
import { Movie } from "swf-types/movie";
import { emitSwf } from "swf-emitter";

function main(): void {
  const movie: Movie = fs.readFileSync("movie.json");
  const bytes: Uint8Array = emitSwf(movie, CompressionMethod.Deflate);
  fs.writeFileSync("movie.swf", bytes);
}

main();

Contributing

This repo uses Git submodules for its test samples:

# Clone with submodules
git clone --recurse-submodules git://github.com/open-flash/swf-emitter.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.

npm install
# work your changes...
npm 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.

0.14.0

3 years ago

0.13.0

3 years ago

0.12.0

4 years ago

0.11.1

5 years ago

0.11.0

5 years ago

0.10.0

5 years ago

0.8.0

5 years ago

0.7.0

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.8

6 years ago

0.0.7

7 years ago