{"id":16799586,"url":"https://github.com/joeyespo/jsonpointer-cli","last_synced_at":"2025-06-20T05:37:25.102Z","repository":{"id":57285851,"uuid":"64279078","full_name":"joeyespo/jsonpointer-cli","owner":"joeyespo","description":"CLI for retrieving a specific value within a JSON document.","archived":false,"fork":false,"pushed_at":"2017-02-12T21:35:42.000Z","size":3,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T00:27:08.904Z","etag":null,"topics":["cli","json","jsonpointer"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joeyespo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-27T05:14:12.000Z","updated_at":"2023-09-08T17:13:04.000Z","dependencies_parsed_at":"2022-09-20T00:16:19.482Z","dependency_job_id":null,"html_url":"https://github.com/joeyespo/jsonpointer-cli","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/joeyespo/jsonpointer-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeyespo%2Fjsonpointer-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeyespo%2Fjsonpointer-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeyespo%2Fjsonpointer-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeyespo%2Fjsonpointer-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joeyespo","download_url":"https://codeload.github.com/joeyespo/jsonpointer-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeyespo%2Fjsonpointer-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260890419,"owners_count":23077859,"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":["cli","json","jsonpointer"],"created_at":"2024-10-13T09:29:11.626Z","updated_at":"2025-06-20T05:37:20.088Z","avatar_url":"https://github.com/joeyespo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"JSON Pointer CLI\n================\n\n[![npm](https://img.shields.io/npm/v/jsonpointer-cli.svg)](https://www.npmjs.com/package/jsonpointer-cli)\n\nCLI for retrieving a specific value within a JSON document using\n[JSON Pointers](https://tools.ietf.org/html/rfc6901).\n\nLooking for a Node library? Check out\n[jsonpointer](https://github.com/janl/node-jsonpointer).\n\n\nInstallation\n------------\n\n```bash\n$ npm install -g jsonpointer-cli\n```\n\n\nUsage\n-----\n\n```bash\n$ jp\nusage: jsonpointer [options] \u003cpointer\u003e [\u003cindent\u003e]\n                jp [options] \u003cpointer\u003e [\u003cindent\u003e]\n\noptions:\n  -l --log     Output console.log format instead of JSON\n\nexamples:\n  $ echo {\"name\": \"jsonpointer-cli\", \"version\": \"1.0.0\"} | jp /name\n  \"jsonpointer-cli\"\n\n  $ echo {\"name\": \"jsonpointer-cli\", \"version\": \"1.0.0\"} | jp --log /version\n  1.0.0\n\n  $ echo {\"data\": [\"a\", {\"b\": 2}, \"c\"]} | jp /data/1\n  {\n    \"b\": 2\n  }\n\n  $ echo {\"data\": [\"a\", {\"b\": 2}, \"c\"]} | jp --log \"\"\n  { data: [ 'a', { b: 2 }, 'c' ] }\n\n  $ echo {\"data\": [\"a\", {\"b\": 2}, \"c\"]} | jp /data\n  [\"a\",{\"b\":2},\"c\"]\n\n  $ echo {} | jp \"\"\n  {}\n```\n\n#### Try it out!\n\nGet the URL of the top JavaScript project on GitHub:\n\n```bash\n$ curl -s \"https://api.github.com/search/repositories?q=language:javascript\u0026sort=stars\" | jp -l /items/0/html_url\n```\n\n\nContributing\n------------\n\n1. Check the open issues or open a new issue to start a discussion around\n   your feature idea or the bug you found\n2. Fork the repository and make your changes\n3. Send a pull request\n\nIf your PR has been waiting a while, feel free to [ping me on Twitter](https://twitter.com/joeyespo).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeyespo%2Fjsonpointer-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoeyespo%2Fjsonpointer-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeyespo%2Fjsonpointer-cli/lists"}