All Projects → TooTallNate → node-amf

TooTallNate / node-amf

Licence: other
"Action Message Format" read() and write() functions for Buffers

Programming Languages

javascript
184084 projects - #8 most used programming language

node-amf

"Action Message Format" read() and write() functions for Buffers

Build Status

This module reads and writes AMF (Action Message Format, commonly used with Adobe products) data types to/from node.js Buffer instances.

For example, the FLV container format by Adobe encodes its "metadata" packets with AMF data. This module can decode those packets back into JavaScript values.

Installation

Install through npm:

$ npm install amf

Example

Here's an example of reading an ECMA Object from a Buffer:

var amf = require('amf');

// this is an AMF-encoded Object...
var data = new Buffer('03 00 03 66 6f 6f 02 00 03 62 61 72 00 00 09'.replace(/ /g, ''), 'hex');

// read the Object out from the Buffer
var obj = amf.read(data, 0);

console.log(obj);
// { foo: 'bar' }

API

Coming soon!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].