New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

swf-parser

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swf-parser

SWF parser

latest
npmnpm
Version
0.14.1
Version published
Maintainers
1
Created
Source
Open Flash logo

SWF Parser (TypeScript)

GitHub repository npm package TypeScript checks status

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

Usage

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);

Contributing

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.

Documentation for the available Gulp tasks

Keywords

swf

FAQs

Package last updated on 08 May 2022

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