W3C home > Mailing lists > Public > public-socialweb@w3.org > January 2015

AS2 node implementation

From: James M Snell <jasnell@gmail.com>
Date: Sun, 18 Jan 2015 09:49:52 -0800
Message-ID: <CABP7Rbe3gjDX8mPgvu1cGhmd7g3abftZkac7eVLGbuChZK9Hdw@mail.gmail.com>
To: "public-socialweb@w3.org" <public-socialweb@w3.org>
An implementation of the AS2 Vocabulary for Node.js. This is still
very experimental and early.

https://www.npmjs.com/package/activitystrea.ms

npm install activitystrea.ms

var as = require('activitystrea.ms');

var post = as.post().
  actor(as.person().displayName('sally')).
  object(as.note().content('this is a note')).
  get().
  prettyWrite(function(err,doc) {
    console.log(doc);
  });
Received on Sunday, 18 January 2015 17:50:39 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:26:14 UTC