{"id":16981583,"url":"https://github.com/mohsen1/json-to-json-schema","last_synced_at":"2025-06-27T13:39:18.228Z","repository":{"id":43138279,"uuid":"45148361","full_name":"mohsen1/json-to-json-schema","owner":"mohsen1","description":"Convert a JSON to a JSON Schema describing that JSON","archived":false,"fork":false,"pushed_at":"2017-03-28T20:06:10.000Z","size":75,"stargazers_count":33,"open_issues_count":2,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-18T12:47:28.655Z","etag":null,"topics":[],"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/mohsen1.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}},"created_at":"2015-10-28T23:39:07.000Z","updated_at":"2025-02-08T12:43:04.000Z","dependencies_parsed_at":"2022-08-30T03:00:50.695Z","dependency_job_id":null,"html_url":"https://github.com/mohsen1/json-to-json-schema","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohsen1%2Fjson-to-json-schema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohsen1%2Fjson-to-json-schema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohsen1%2Fjson-to-json-schema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohsen1%2Fjson-to-json-schema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohsen1","download_url":"https://codeload.github.com/mohsen1/json-to-json-schema/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244978383,"owners_count":20541843,"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-10-14T02:05:51.332Z","updated_at":"2025-03-22T15:30:39.117Z","avatar_url":"https://github.com/mohsen1.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# JSON to JSON Schema\n\n\n[![Build Status](https://travis-ci.org/mohsen1/json-to-json-schema.svg?branch=master)](https://travis-ci.org/mohsen1/json-to-json-schema)\n\n\u003e Convert a JSON to a JSON Schema describing that JSON\n\n## Usage\n\n```js\nimport {convert} from 'json-to-json-schema';\n\nconst myJson = {name: 'Mohsen'};\n\nconst mySchema = convert(myJson);\n\nconsole.log(mySchema); // =\u003e {type: 'object', properties: {name: {type: 'string'}}}\n```\n\n## Installation\nUse npm or Bower to install this package\n\n```\nnpm install --save json-to-json-schema\n```\n```\nbower install --save json-to-json-schema\n```\nThe browser module supports all UMD module systems. It exposes `JSONToJSONSchema` global object when there is no module system available.\n\n## Development\nTo install dependencies\n\n```\nnpm install\n```\n\nTo run tests\n\n```\nnpm test\n```\n\nTo run tests continuously and watch for changes install [mocha](https://mochajs.org/) and run:\n\n```\nmocha --compilers js:babel/register -w\n```\n\nTo make a new browser build run\n\n```\nnpm run browserify\n```\n\n## License\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohsen1%2Fjson-to-json-schema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohsen1%2Fjson-to-json-schema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohsen1%2Fjson-to-json-schema/lists"}