{"id":22273105,"url":"https://github.com/mac-/jsonator","last_synced_at":"2026-02-19T00:33:04.898Z","repository":{"id":9599352,"uuid":"11520373","full_name":"mac-/jsonator","owner":"mac-","description":null,"archived":false,"fork":false,"pushed_at":"2013-11-30T14:41:38.000Z","size":150,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-16T15:16:31.533Z","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/mac-.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":"2013-07-19T04:56:23.000Z","updated_at":"2015-04-23T05:18:24.000Z","dependencies_parsed_at":"2022-08-26T03:25:37.449Z","dependency_job_id":null,"html_url":"https://github.com/mac-/jsonator","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/mac-/jsonator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mac-%2Fjsonator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mac-%2Fjsonator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mac-%2Fjsonator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mac-%2Fjsonator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mac-","download_url":"https://codeload.github.com/mac-/jsonator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mac-%2Fjsonator/sbom","scorecard":{"id":609109,"data":{"date":"2025-08-11","repo":{"name":"github.com/mac-/jsonator","commit":"ac3ebeb60e017baf1e672eb162b9c60730fc4fb1"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 1/12 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T02:13:58.696Z","repository_id":9599352,"created_at":"2025-08-21T02:13:58.697Z","updated_at":"2025-08-21T02:13:58.697Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29599364,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T22:25:43.180Z","status":"ssl_error","status_checked_at":"2026-02-18T22:25:42.766Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-12-03T13:09:47.181Z","updated_at":"2026-02-19T00:33:04.862Z","avatar_url":"https://github.com/mac-.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jsonator\n\njsonator is app to help with manipulating json text streams.\n\n[![Build Status](https://drone.io/github.com/mac-/jsonator/status.png)](https://drone.io/github.com/mac-/jsonator/latest)\n[![NPM version](https://badge.fury.io/js/jsonator.png)](http://badge.fury.io/js/jsonator)\n[![Dependency Status](https://david-dm.org/mac-/jsonator.png)](https://david-dm.org/mac-/jsonator)\n\n[![NPM](https://nodei.co/npm/jsonator.png?downloads=true\u0026stars=true)](https://nodei.co/npm/jsonator/)\n\n## Installation\n\n\tnpm install -g jsonator\n\n## Usage\n\njsonator takes data piped to it via stdin, manipulates the data based on the options used, and pipes the data back to stdout.\n\nYou can run jsonator with the -h flag to see the various options:\n\n\t$ jsonator -h\n\n\t  Usage: jsonator [options]\n\n\t  Options:\n\n\t    -h, --help                output usage information\n\t    -V, --version             output the version number\n\t    -o, --operation \u003cstring\u003e  (Optional) the operation to perform on the property (get, set, exists, delete, increment, decrement, not, contains, push, pop, shift, unshift) Defaults to: \"set\"\n\t    -p, --property \u003cstring\u003e   (Required) the property (using dot notation for sub properties) to operate on\n\t    -t, --type \u003ctype\u003e         (Optional) the data type of the value Defaults to: \"string\"\n\t    -v, --value \u003cvalue\u003e       (Optional) the data to apply with the given operation\n\n## Examples\n\n### `get` operation\n\n```\n$ echo \"{\\\"id\\\":\\\"fnord\\\"}\" | jsonator -o get -p id\n\"fnord\"\n```\n\n```\n$ echo \"{\\\"id\\\":{\\\"type\\\":\\\"string\\\"}}\" | jsonator -o get -p id\n{\"type\":\"string\"}\n```\n\n```\n$ echo \"{\\\"id\\\":{\\\"type\\\":\\\"string\\\"}}\" | jsonator -o get -p id.type\n\"string\"\n```\n\n```\n$ echo \"{\\\"id\\\":{\\\"values\\\":[\\\"1\\\",\\\"2\\\"]}}\" | jsonator -o get -p id.values[0]\n\"1\"\n```\n\n### `set` operation\n\n```\n$ echo \"{\\\"id\\\":\\\"fnord\\\"}\" | jsonator -o set -p id -v 1234\n{\"id\":\"1234\"}\n```\n\n```\n$ echo \"{\\\"id\\\":\\\"fnord\\\"}\" | jsonator -o set -p id -v 1234 -t number\n{\"type\":1234}\n```\n\n```\n$ echo \"{\\\"id\\\":{\\\"type\\\":\\\"string\\\"}}\" | jsonator -o set -p id.type -v number -t string\n{\"id\":{\"type\":\"number\"}}\n```\n\n```\n$ echo \"{\\\"id\\\":{\\\"values\\\":[\\\"1\\\",\\\"2\\\"]}}\" | jsonator -o set -p id.values[0] -v 6 -t number\n{\"id\":{\"values\":[6,\"2\"]}}\n```\n\n### `exists` operation\n\n```\n$ echo \"{\\\"id\\\":\\\"fnord\\\"}\" | jsonator -o exists -p id\ntrue\n```\n\n```\n$ echo \"{\\\"id\\\":\\\"fnord\\\"}\" | jsonator -o exists -p type\nfalse\n```\n\n```\n$ echo \"{\\\"id\\\":{\\\"type\\\":\\\"string\\\"}}\" | jsonator -o exists -p id.type\ntrue\n```\n\n```\n$ echo \"{\\\"id\\\":{\\\"values\\\":[\\\"1\\\",\\\"2\\\"]}}\" | jsonator -o exists -p id.values[0]\ntrue\n```\n\n### `delete` operation\n\n```\n$ echo \"{\\\"id\\\":\\\"fnord\\\"}\" | jsonator -o delete -p id\n{}\n```\n\n```\n$ echo \"{\\\"id\\\":\\\"fnord\\\", \\\"type\\\":\\\"string\\\"}\" | jsonator -o delete -p type\n{\"id\":\"fnord\"}\n```\n\n```\n$ echo \"{\\\"id\\\":{\\\"type\\\":\\\"string\\\"}}\" | jsonator -o delete -p id.type\n{\"id\":{}}\n```\n\n```\n$ echo \"{\\\"id\\\":{\\\"values\\\":[{\\\"i\\\":\\\"1\\\"},\\\"2\\\"]}}\" | jsonator -o delete -p id.values[0].i\n{\"id\":{\"values\":[{},\"2\"]}}\n```\n\n### `increment` operation\n\n```\n$ echo \"{\\\"id\\\":1}\" | jsonator -o increment -p id\n{\"id\":2}\n```\n\n```\n$ echo \"{\\\"id\\\":\\\"fnord\\\", \\\"type\\\":100}\" | jsonator -o increment -p type\n{\"id\":\"fnord\",\"type\":101}\n```\n\n```\n$ echo \"{\\\"id\\\":{\\\"values\\\":[{\\\"i\\\":1},2]}}\" | jsonator -o increment -p id.values[1]\n{\"id\":{\"values\":[{\"i\":1},3]}}\n```\n\n```\n$ echo \"{\\\"id\\\":{\\\"values\\\":[{\\\"i\\\":1},\\\"2\\\"]}}\" | jsonator -o increment -p id.values[0].i\n{\"id\":{\"values\":[{\"i\":2},\"2\"]}}\n```\n\n### `decrement` operation\n\n```\n$ echo \"{\\\"id\\\":1}\" | jsonator -o decrement -p id\n{\"id\":0}\n```\n\n```\n$ echo \"{\\\"id\\\":\\\"fnord\\\", \\\"type\\\":100}\" | jsonator -o decrement -p type\n{\"id\":\"fnord\",\"type\":99}\n```\n\n```\n$ echo \"{\\\"id\\\":{\\\"values\\\":[{\\\"i\\\":1},2]}}\" | jsonator -o decrement -p id.values[1]\n{\"id\":{\"values\":[{\"i\":1},1]}}\n```\n\n```\n$ echo \"{\\\"id\\\":{\\\"values\\\":[{\\\"i\\\":1},\\\"2\\\"]}}\" | jsonator -o decrement -p id.values[0].i\n{\"id\":{\"values\":[{\"i\":0},\"2\"]}}\n```\n\n### `not` operation\n\n```\n$ echo \"{\\\"id\\\":false}\" | jsonator -o not -p id\n{\"id\":true}\n```\n\n```\n$ echo \"{\\\"id\\\":{\\\"values\\\":[{\\\"i\\\":1},false]}}\" | jsonator -o not -p id.values[1]\n{\"id\":{\"values\":[{\"i\":1},true]}}\n```\n\n\n### `contains` operation\n\n```\n$ echo \"{\\\"ids\\\":[1,2,3]}\" | jsonator -o contains -p ids -v 1\nfalse\n```\n\n```\n$ echo \"{\\\"ids\\\":[1,2,3]}\" | jsonator -o contains -p ids -v 1 -t number\ntrue\n```\n\n```\n$ echo \"{\\\"ids\\\":[{\\\"type\\\":\\\"number\\\"},2,3]}\" | jsonator -o contains -p ids -v \"{\\\"type\\\":\\\"number\\\"}\" -t object\ntrue\n```\n\n### `push` operation\n\n```\n$ echo \"{\\\"ids\\\":[1,2,3]}\" | jsonator -o push -p ids -v 1\n{\"ids\":[1,2,3,\"1\"]}\n```\n\n```\n$ echo \"{\\\"ids\\\":[1,2,3]}\" | jsonator -o push -p ids -v 1 -t number\n{\"ids\":[1,2,3,1]}\n```\n\n```\n$ echo \"{\\\"ids\\\":[1,2,3]}\" | jsonator -o push -p ids -v \"{\\\"type\\\":\\\"number\\\"}\" -t object\n{\"ids\":[1,2,3,{\"type\":\"number\"}]}\n```\n\n### `pop` operation\n\n```\n$ echo \"{\\\"ids\\\":[1,2,3]}\" | jsonator -o pop -p ids\n{\"ids\":[1,2]}\n```\n\n```\n$ echo \"{\\\"ids\\\":[1,2,{\\\"type\\\":\\\"number\\\"}]}\" | jsonator -o pop -p ids\n{\"ids\":[1,2]}\n```\n\n```\n$ echo \"{\\\"ids\\\":[1,2,{\\\"types\\\":[\\\"number\\\"]}]}\" | jsonator -o pop -p ids[2].types\n{\"ids\":[1,2,{\"types\":[]}]}\n```\n\n### `shift` operation\n\n```\n$ echo \"{\\\"ids\\\":[1,2,3]}\" | jsonator -o shift -p ids\n{\"ids\":[2,3]}\n```\n\n```\n$ echo \"{\\\"ids\\\":[1,2,{\\\"type\\\":\\\"number\\\"}]}\" | jsonator -o shift -p ids\n{\"ids\":[2,{\"type\":\"number\"}]}\n```\n\n```\n$ echo \"{\\\"ids\\\":[1,2,{\\\"types\\\":[\\\"number\\\"]}]}\" | jsonator -o shift -p ids[2].types\n{\"ids\":[1,2,{\"types\":[]}]}\n```\n\n### `unshift` operation\n\n```\n$ echo \"{\\\"ids\\\":[1,2,3]}\" | jsonator -o unshift -p ids -v 1\n{\"ids\":[\"1\",1,2,3]}\n```\n\n```\n$ echo \"{\\\"ids\\\":[1,2,3]}\" | jsonator -o unshift -p ids -v 1 -t number\n{\"ids\":[1,1,2,3]}\n```\n\n```\n$ echo \"{\\\"ids\\\":[1,2,3]}\" | jsonator -o unshift -p ids -v \"{\\\"type\\\":\\\"number\\\"}\" -t object\n{\"ids\":[{\"type\":\"number\"},1,2,3]}\n```\n\n## License\n\nThe MIT License (MIT) Copyright (c) 2013 Mac Angell\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/mac-/jsonator/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmac-%2Fjsonator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmac-%2Fjsonator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmac-%2Fjsonator/lists"}