node-amf0

AMF0 fully supported in Node.js


Keywords
ByteArray, Actionscript, Buffer, Binary, AMF, AMF0, AMF3, Action, Message, Format, adobe, flash
License
MIT
Install
npm install node-amf0@1.0.4

Documentation

node-amf0

Build Status

NPM Version

Introduction

This is an AMF0 library supporting writing and reading for Node.js. It's written to be as accurate as possible to AMF0 in Actionscript. This library also fully supports AMF0 packets.

Installation

npm install node-amf0

Test & Usage

You can find tests in /spec/ using tape.

A simple usage example:

const AMF0 = require("node-amf0")
const amf = new AMF0()

amf.writeData({ id: 1 })

amf.readData() // { id: 1 }

Supported types

Type Write Read Reason for exclusion
Number -
Boolean -
String -
Object -
Movieclip Reserved
Null -
Undefined -
Reference -
ECMA array -
Strict array AMF0 standards to ECMA array for writing, supported anyway
Date -
Long string -
Unsupported No type in JS
Recordset Reserved
XML document Who needs XML?
Typed object -
Packet -