{"id":20285668,"url":"https://github.com/marcisbee/esjson","last_synced_at":"2025-10-23T16:00:11.397Z","repository":{"id":46244136,"uuid":"311706128","full_name":"Marcisbee/esjson","owner":"Marcisbee","description":"🛡 Fast JSON Schema validator (cli)","archived":false,"fork":false,"pushed_at":"2023-04-05T09:14:49.000Z","size":96,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-10T06:50:30.511Z","etag":null,"topics":["cli","hacktoberfest","json","json-schema","json-schema-validator","schema","validator"],"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/Marcisbee.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2020-11-10T15:44:54.000Z","updated_at":"2023-07-28T20:54:37.000Z","dependencies_parsed_at":"2024-11-14T14:30:36.727Z","dependency_job_id":"0e7556f5-481c-4210-b86a-25d56cf6e5d9","html_url":"https://github.com/Marcisbee/esjson","commit_stats":{"total_commits":55,"total_committers":1,"mean_commits":55.0,"dds":0.0,"last_synced_commit":"1822396e336874cc8b994ef92847bda41c25b0a1"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marcisbee%2Fesjson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marcisbee%2Fesjson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marcisbee%2Fesjson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marcisbee%2Fesjson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Marcisbee","download_url":"https://codeload.github.com/Marcisbee/esjson/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248362343,"owners_count":21091099,"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","hacktoberfest","json","json-schema","json-schema-validator","schema","validator"],"created_at":"2024-11-14T14:28:25.854Z","updated_at":"2025-10-23T16:00:11.226Z","avatar_url":"https://github.com/Marcisbee.png","language":"JavaScript","readme":"# esjson\nJSON Schema validator (cli)\n\n[![npm version](https://img.shields.io/npm/v/esjson.svg?style=flat-square)](https://www.npmjs.com/package/esjson)\n[![npm downloads](https://img.shields.io/npm/dm/esjson.svg?style=flat-square)](https://www.npmjs.com/package/esjson)\n[![gzip bundle size](https://img.shields.io/bundlephobia/minzip/esjson?style=flat-square)](https://bundlephobia.com/result?p=esjson)\n[![discord](https://dcbadge.vercel.app/api/server/a62gfaDW2e?style=flat-square)](https://discord.gg/a62gfaDW2e)\n\n\n## Command line interface\nInstall esjson with npm to use the command line interface:\n\n```bash\nnpm install esjson -g\n```\n\nValidate a file like so:\n\n```bash\nesjson file.json --schema=schema.json\n```\n\n## Options\n\n```\nUsage: esjson [file] [options]\n\nfile     file to parse; otherwise uses stdin\n\nOptions:\n   -v, --version            print version and exit\n   -s, --schema             validate json according to schema\n   -i, --include            array of file paths to include (default: *.json)\n   -e, --exclude            array of file paths to exclude (default: node_modules/**)\n   -a, --allow              rules for definitions and keys to allow (example: additionalProperties:name:MyDefinition)\n   --empty                  array of file paths to allow to be empty\n```\n\n# Motivation\n\nSome of the already existing tools were not good enough for my use case (e.g. validating large list of definitions and returning quite specific errors was impossible with other json schema validators out there). So I just built my own. It does not fully comply with spec __yet__, but I'm planning to add features from spec as the time goes!\n\nAlso there is little to none documentation. If you really want to use this tool, then open an issue requesting detailed documentation, I'll see what I can put together.\n\n# MIT License\nCopyright (C) 2020 Marcis Bergmanis\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","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcisbee%2Fesjson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcisbee%2Fesjson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcisbee%2Fesjson/lists"}