{"id":13554644,"url":"https://github.com/digitalbazaar/jsonld-cli","last_synced_at":"2025-05-05T18:26:43.407Z","repository":{"id":57285773,"uuid":"42329920","full_name":"digitalbazaar/jsonld-cli","owner":"digitalbazaar","description":"JSON-LD command line interface tool","archived":false,"fork":false,"pushed_at":"2024-03-27T17:55:28.000Z","size":47,"stargazers_count":51,"open_issues_count":18,"forks_count":7,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-04-19T10:28:44.672Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/digitalbazaar.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-09-11T20:11:10.000Z","updated_at":"2025-03-25T23:07:26.000Z","dependencies_parsed_at":"2024-01-03T03:20:18.814Z","dependency_job_id":"2cb77aa0-000b-4aca-99d6-97f87ecb5a78","html_url":"https://github.com/digitalbazaar/jsonld-cli","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalbazaar%2Fjsonld-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalbazaar%2Fjsonld-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalbazaar%2Fjsonld-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalbazaar%2Fjsonld-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitalbazaar","download_url":"https://codeload.github.com/digitalbazaar/jsonld-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252552150,"owners_count":21766646,"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-08-01T12:02:51.993Z","updated_at":"2025-05-05T18:26:43.383Z","avatar_url":"https://github.com/digitalbazaar.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","others"],"sub_categories":[],"readme":"jsonld-cli\n==========\n\nIntroduction\n------------\n\nThis module provides a command line tool `jsonld` to manipulate [JSON-LD][]\ndata. It is written in JavaScript for [Node.js][] and uses the [jsonld.js][]\nand [jsonld-request][] libraries. Inputs can be from stdin, URLs, or files.\n\n## Requirements\n\n* [Node.js][]\n* [npm][]\n\n## Installation\n\n### Install from NPM\n\n```\nnpm install -g jsonld-cli\n```\n\n### Use directly with npx\n\n```\nnpx jsonld-cli ...\n```\n\n## Usage\n\nThe `jsonld` command line tool can be used to:\n\n * Check JSON-LD for various problematic data.\n * Transform JSON-LD to compact, expanded, flattened, or canonized form.\n * Transform [RDFa][] to JSON-LD.\n * Canonize JSON-LD/RDFa Datasets to [N-Quads][].\n\nTo show tool options, a list of commands, or command options:\n\n    jsonld --help\n    jsonld COMMAND --help\n\nTo check JSON-LD for some common problems:\n\n    jsonld lint \"https://example.com/data.json\"\n\nTo compact a document on the Web using a JSON-LD context published on\nthe Web:\n\n    jsonld compact -c \"https://w3id.org/payswarm/v1\" \"http://recipes.payswarm.com/?p=10554\"\n\nThe command above will read in a PaySwarm Asset and Listing in [RDFa][] 1.0\nformat, convert it to JSON-LD expanded form, compact it using the\n'https://w3id.org/payswarm/v1' context, and dump it out to the console in\ncompacted form.\n\n    jsonld canonize -q \"http://recipes.payswarm.com/?p=10554\"\n\nThe command above will read in a PaySwarm Asset and Listing in [RDFa][] 1.0\nformat, canonize the data using the RDF Dataset canonicalization algorithm, and\nthen dump the output to canonized [N-Quads][] format. The [N-Quads][] can then\nbe processed via SHA-256, or similar algorithm, to get a deterministic hash of\nthe contents of the Dataset.\n\nSecurity Considerations\n-----------------------\n\n * This tool is able to read stdin, local files, and remote resources.\n * Loading of remote resources may reveal aspects of the data being processed.\n * Input data may recursively load remote resources.\n * Input data may load arbitrary local files if allowed.\n * Processing data that uses untrusted remote resources could result in\n   unexpected output.\n\nCommercial Support\n------------------\n\nCommercial support for this library is available upon request from\n[Digital Bazaar][]: support@digitalbazaar.com\n\nSource Code\n-----------\n\nhttps://github.com/digitalbazaar/jsonld-cli\n\n[Digital Bazaar]: https://digitalbazaar.com/\n[JSON-LD]: https://json-ld.org/\n[N-Quads]: https://www.w3.org/TR/n-quads/\n[Node.js]: https://nodejs.org/\n[RDFa]: http://www.w3.org/TR/rdfa-core/\n[json-ld.org]: https://github.com/json-ld/json-ld.org\n[jsonld-request]: https://github.com/digitalbazaar/jsonld-request\n[jsonld.js]: https://github.com/digitalbazaar/jsonld.js\n[npm]: https://npmjs.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalbazaar%2Fjsonld-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitalbazaar%2Fjsonld-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalbazaar%2Fjsonld-cli/lists"}