npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-amfutils

v0.0.1

Published

Node.JS module that provides an API for encoding and decoding of AMF0 and AMF3 protocols

Downloads

24

Readme

node-amfutils

Node.JS module that provides an API for encoding and decoding of AMF0 and AMF3 protocols

This little module provides few tools helping encoding and decoding of AMF0/3 using Node's buffers.

Usage

var amfUtils = require('node-amfutils');

var buffer = amfUtils.amf0Encode([{ a: "xxx"},b: null]);

Here is a short list of the utils it provide:

decodeAmf3Cmd

Decodes AMF3 encoded command

encodeAmf3Cmd

Encodes AMF3 encoded command

decodeAmf0Cmd

Decodes AMF3 encoded command

encodeAmf0Cmd

Encodes AMF3 encoded command

amf0Encode / amf3Encode

Encode Javascript object in AMF0/3

amf0EncodeOne / amf3EncodeOne

Encode one JavaScript variable in AMF0/3

amf0Decode / amf3Decode

Decode AMF0/3 into JavaScript object

amf0DecodeOne / amf3DecodeOne

Decode one only amf0/3 command into JavaScript

Other tools

amf0cnvA2O amf0cnvO2A amf0markSArray amf0decArray amf0decBool amf0decDate amf0decLongString amf0decNull amf0decNumber amf0decObject amf0decRef amf0decSArray amf0decString amf0decTypedObj amf0decUndefined amf0decXmlDoc amf0encArray amf0encBool amf0encDate amf0encLongString amf0encNull amf0encNumber amf0encObject amf0encRef amf0encSArray amf0encString amf0encTypedObj amf0encUndefined amf0encXmlDoc amf3decArray amf3decByteArray amf3decDate amf3decDouble amf3decFalse amf3decInteger amf3decNull amf3decObject amf3decString amf3decTrue amf3decUI29 amf3decUndefined amf3decXml amf3decXmlDoc amf3encArray amf3encByteArray amf3encDate amf3encDouble amf3encFalse amf3encInteger amf3encNull amf3encObject amf3encString amf3encTrue amf3encUI29 amf3encUndefined amf3encXml amf3encXmlDoc