1.0.2 • Published 5 years ago

node-amf v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

node-amf

Build Status

NPM Version

Introduction

This is an AMF library supporting AMF0 and AMF3. It's written to be as accurate as possible to AMF in Actionscript.

Installation

npm install node-amf

Test & Usage

You can find tests in /spec/ using tape.

A simple usage example:

const AMF0 = require("node-amf")
const amf = new AMF() // AMF3

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

amf.version = 0 // AMF0

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

Supported types

AMF0

TypeWriteReadReason for exclusion
Number-
Boolean-
String-
Object-
Null-
Undefined-
Reference-
ECMA array-
Strict arrayAMF0 standards to ECMA array for writing
Date-
Long string-
XML documentWho needs XML?
Typed object-

AMF3

TypeWriteReadReason for exclusion
Undefined-
Null-
Boolean-
Integer-
Double-
String-
XML documentWho needs XML?
Date-
Array-
Object-
XMLWho needs XML?
ByteArray-
VectorNo type in JS
DictionaryNo type in JS
1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago