canonical-tent-json
Generate canonical JSON for Tent posts. For Tent 0.3.
Installation
$ npm install canonical-tent-json
Usage
var canonical = ;var post = "original_entity": "https://example.com" "entity": "https://example.net" "type": "https://tent.io/types/status/v0" "content": "text": "Hello world!" "published_at": 1450396800; var newcanonicalpost = ;Object; //falsevar version_id = newcanonicalpost;//sha512t256-8c71c9113e53a23eaf1a7ac763e8759f2aa88cb73d50564a6c0ba46263e851d1