{"id":15889086,"url":"https://github.com/arshadkazmi42/json-key-validate","last_synced_at":"2025-07-11T05:39:11.376Z","repository":{"id":53571333,"uuid":"172223881","full_name":"arshadkazmi42/json-key-validate","owner":"arshadkazmi42","description":"Validates if all required keys are present in JSON object","archived":false,"fork":false,"pushed_at":"2022-07-12T12:38:31.000Z","size":91,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-28T01:46:03.294Z","etag":null,"topics":["has-key","json-has","json-has-key","json-key-validate","json-validate","payload-validate","validate"],"latest_commit_sha":null,"homepage":null,"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/arshadkazmi42.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"arshadkazmi42"}},"created_at":"2019-02-23T14:31:16.000Z","updated_at":"2022-07-12T12:38:16.000Z","dependencies_parsed_at":"2022-08-24T16:42:00.661Z","dependency_job_id":null,"html_url":"https://github.com/arshadkazmi42/json-key-validate","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arshadkazmi42%2Fjson-key-validate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arshadkazmi42%2Fjson-key-validate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arshadkazmi42%2Fjson-key-validate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arshadkazmi42%2Fjson-key-validate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arshadkazmi42","download_url":"https://codeload.github.com/arshadkazmi42/json-key-validate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229805182,"owners_count":18126807,"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":["has-key","json-has","json-has-key","json-key-validate","json-validate","payload-validate","validate"],"created_at":"2024-10-06T06:41:12.289Z","updated_at":"2024-12-15T10:08:37.372Z","avatar_url":"https://github.com/arshadkazmi42.png","language":"JavaScript","funding_links":["https://github.com/sponsors/arshadkazmi42"],"categories":[],"sub_categories":[],"readme":"# json-key-validate\n\n[![Build](https://github.com/arshadkazmi42/json-key-validate/actions/workflows/nodejs.yml/badge.svg)](https://github.com/arshadkazmi42/json-key-validate/actions/workflows/nodejs.yml)\n[![NPM Version](https://img.shields.io/npm/v/json-key-validate.svg)](https://www.npmjs.com/package/json-key-validate)\n[![NPM Downloads](https://img.shields.io/npm/dt/json-key-validate.svg)](https://www.npmjs.com/package/json-key-validate)\n[![Github Repo Size](https://img.shields.io/github/repo-size/arshadkazmi42/json-key-validate.svg)](https://github.com/arshadkazmi42/json-key-validate)\n[![LICENSE](https://img.shields.io/npm/l/json-key-validate.svg)](https://github.com/arshadkazmi42/json-key-validate/blob/master/LICENSE)\n[![Contributors](https://img.shields.io/github/contributors/arshadkazmi42/json-key-validate.svg)](https://github.com/arshadkazmi42/json-key-validate/graphs/contributors)\n[![Commit](https://img.shields.io/github/last-commit/arshadkazmi42/json-key-validate.svg)](https://github.com/arshadkazmi42/json-key-validate/commits/master)\n\nValidates if all required keys are present in JSON object\n\n\u003e Give us a :star: if you like our work :heart:\n\n## Install\n\n```\n$ npm install json-key-validate --save\n```\n\n## Usage\n\n```javascript\nconst jkValidate = require('json-key-validate');\n\nconst JSON_DATA = {\n  'name': 'arr-contains',\n  'author': 'Arshad Kazmi',\n  'repository': {\n    'url': 'https://github.com/arshadkazmi42/arr-contains',\n    'language': 'js'\n  }\n};\n\nconst isValid = jkValidate(JSON_DATA, ['name', 'author']);\n// Output -\u003e true\n\nconst isValid = jkValidate(JSON_DATA, ['url', 'author']);\n// Output -\u003e false\n\nconst isValid = jkValidate('JSON_DATA', ['url', 'author']);\n// Output -\u003e false\n```\n\n## Contributing\n\nInterested in contributing to this project?\nYou can log any issues or suggestion related to this library [here](https://github.com/arshadkazmi42/json-key-validate/issues/new)\n\nRead our contributing [guide](CONTRIBUTING.md) on getting started with contributing to the codebase\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farshadkazmi42%2Fjson-key-validate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farshadkazmi42%2Fjson-key-validate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farshadkazmi42%2Fjson-key-validate/lists"}