{"id":20876763,"url":"https://github.com/brooksn/canonical-tent-json","last_synced_at":"2026-04-24T00:38:51.541Z","repository":{"id":33970649,"uuid":"37709102","full_name":"brooksn/canonical-tent-json","owner":"brooksn","description":"Generate canonical JSON for Tent posts","archived":false,"fork":false,"pushed_at":"2015-07-10T06:39:05.000Z","size":152,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-20T22:51:17.867Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brooksn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-19T07:50:28.000Z","updated_at":"2015-06-19T07:51:08.000Z","dependencies_parsed_at":"2022-07-13T21:43:44.458Z","dependency_job_id":null,"html_url":"https://github.com/brooksn/canonical-tent-json","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brooksn%2Fcanonical-tent-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brooksn%2Fcanonical-tent-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brooksn%2Fcanonical-tent-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brooksn%2Fcanonical-tent-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brooksn","download_url":"https://codeload.github.com/brooksn/canonical-tent-json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243250542,"owners_count":20261044,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T06:54:48.205Z","updated_at":"2025-12-28T04:21:33.416Z","avatar_url":"https://github.com/brooksn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# canonical-tent-json\nGenerate canonical JSON for Tent posts. For [Tent 0.3](https://tent.io/docs/posts#canonical-post-json).\n\n[![npm version](https://badge.fury.io/js/canonical-tent-json.svg)](http://badge.fury.io/js/canonical-tent-json)\n[![Build Status](https://travis-ci.org/brooksn/canonical-tent-json.svg)](https://travis-ci.org/brooksn/canonical-tent-json)\n\n## Installation\n\n```shell\n$ npm install canonical-tent-json\n```\n\n## Usage\n\n```js\nvar canonical = require('canonical-tent-json');\nvar post = {\n  \"original_entity\": \"https://example.com\",\n  \"entity\": \"https://example.net\",\n  \"type\": \"https://tent.io/types/status/v0\",\n  \"content\": {\n    \"text\": \"Hello world!\"\n  },\n  \"published_at\": 1450396800\n};\n\nvar newcanonicalpost = canonical(post);\nObject.is(post, newcanonicalpost); //false\nvar version_id = newcanonicalpost.versionID();\n//sha512t256-8c71c9113e53a23eaf1a7ac763e8759f2aa88cb73d50564a6c0ba46263e851d1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrooksn%2Fcanonical-tent-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrooksn%2Fcanonical-tent-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrooksn%2Fcanonical-tent-json/lists"}