# swf-tree

> Abstract Syntax Tree for SWF

Latest version **0.9.0-build.66** (published 2019-11-09) · 0 weekly downloads

## Install

```sh
npm install swf-tree
pnpm add swf-tree
yarn add swf-tree
bun add swf-tree
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.9.0-build.66 |
| Published | 2019-11-09 |
| First published | 2017-07-13 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 1.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Maintainers | demurgos |
| Keywords | swf, ast |

## Links

- npm: https://www.npmjs.com/package/swf-tree
- Repository: https://github.com/open-flash/swf-tree
- Issues: https://github.com/open-flash/swf-tree/issues
- npm.io page: https://npm.io/package/swf-tree

## Dependencies (4)

- [kryo](https://npm.io/package/kryo.md) ^0.8.1
- [incident](https://npm.io/package/incident.md) ^3.2.0
- [ts-tagged](https://npm.io/package/ts-tagged.md) ^1.0.0
- [semantic-types](https://npm.io/package/semantic-types.md) ^0.1.1

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 0.9.0-build.66 (latest) — 2019-11-09
- 0.9.0 — 2019-10-17
- 0.8.0-build.44 — 2019-10-17
- 0.8.0-build.42 — 2019-10-16
- 0.8.0-build.40 — 2019-10-16
- 0.8.0-build.32 — 2019-10-16
- 0.8.0-build.23 — 2019-10-15
- 0.8.0 — 2019-07-08
- 0.7.2 — 2019-07-05
- 0.7.1 — 2019-07-04
- 0.7.0 — 2019-05-21
- 0.6.0 — 2019-04-22
- 0.5.0 — 2019-04-13
- 0.4.0 — 2019-03-29
- 0.3.0 — 2019-03-28
- … 21 more at https://npm.io/package/swf-tree/versions

## README

<a href="https://github.com/open-flash/open-flash">
    <img src="https://raw.githubusercontent.com/open-flash/open-flash/master/logo.png"
    alt="Open Flash logo" title="Open Flash" align="right" width="64" height="64" />
</a>

# SWF Tree (Typescript)

[![npm](https://img.shields.io/npm/v/swf-tree.svg)](https://www.npmjs.com/package/swf-tree)
[![GitHub repository](https://img.shields.io/badge/Github-open--flash%2Fswf--tree-blue.svg)](https://github.com/open-flash/swf-tree)
[![Build status](https://img.shields.io/travis/com/open-flash/swf-tree/master.svg)](https://travis-ci.com/open-flash/swf-tree)

Typescript implementation of the SWF Abstract Syntax Tree (AST).

## Usage

```shell
# Run as a simple user
npm install -S swf-tree
```

```typescript
import {readFileString} from "fs";
import {Movie} from "swf-tree";

// Deserialize
const jsonString: string = readFileString("ast.json").toString("utf8");
const parsedJson: Movie.Json = JSON.parse(jsonString);
const movie: Movie = Movie.Type.read("json", parsedJson);

// Serialize
const emittedJson: Movie.Json = Movie.Type.write("json", movie);
console.log(JSON.stringify(jsonMovie, null, 2));
```

---
_Source: https://npm.io/package/swf-tree · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
