{"id":28628323,"url":"https://github.com/oprogramador/json-schema-faker-cli","last_synced_at":"2025-06-12T10:12:09.381Z","repository":{"id":41967507,"uuid":"72042233","full_name":"oprogramador/json-schema-faker-cli","owner":"oprogramador","description":"A CLI for json-schema-faker.","archived":false,"fork":false,"pushed_at":"2025-05-24T10:49:06.000Z","size":246,"stargazers_count":29,"open_issues_count":6,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-24T11:35:41.643Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oprogramador.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-10-26T20:36:08.000Z","updated_at":"2025-03-24T12:04:33.000Z","dependencies_parsed_at":"2023-02-18T09:45:18.722Z","dependency_job_id":"953f3f31-93d2-490c-bd3b-40cb9600a8df","html_url":"https://github.com/oprogramador/json-schema-faker-cli","commit_stats":{"total_commits":105,"total_committers":5,"mean_commits":21.0,"dds":0.5523809523809524,"last_synced_commit":"7a0423c91f9a5c1d12c0da6855e51207c648d533"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/oprogramador/json-schema-faker-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oprogramador%2Fjson-schema-faker-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oprogramador%2Fjson-schema-faker-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oprogramador%2Fjson-schema-faker-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oprogramador%2Fjson-schema-faker-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oprogramador","download_url":"https://codeload.github.com/oprogramador/json-schema-faker-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oprogramador%2Fjson-schema-faker-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259445020,"owners_count":22858554,"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":"2025-06-12T10:12:08.732Z","updated_at":"2025-06-12T10:12:09.343Z","avatar_url":"https://github.com/oprogramador.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json-schema-faker-cli\n\n[![MIT License](https://img.shields.io/badge/license-mit-green.svg?style=flat-square)](https://opensource.org/licenses/MIT)\n[![Build Status](https://travis-ci.com/oprogramador/json-schema-faker-cli.svg?branch=master)](https://travis-ci.com/oprogramador/json-schema-faker-cli)\n\n[![NPM status](https://nodei.co/npm/json-schema-faker-cli.png?downloads=true\u0026stars=true)](https://npmjs.org/package/json-schema-faker-cli)\n\nThis is a CLI for [json-schema-faker](https://www.npmjs.com/package/json-schema-faker).\n\n## install\n\n`npm install -g json-schema-faker-cli`\n\n## usage\n\n### params\n- (required) file (path) containing JSON schema\n- (optional) generated file (path) according to the provided schema\n- (optional) number of objects in the array (when you want to generate an array of multiple objects matching the schema)\n- (optional) file (path) containing options (in JS or JSON format)\n\n### generating single object from the schema\n`generate-json schema.json output.json`\n\n### generating array of multiple objects\n`generate-json schema.json output.json $ITEMS_LENGTH`\n\n### generating with options set\n`generate-json schema.json output.json none options.js`\n\nYou can use any of the [json-schema-faker available options](https://github.com/json-schema-faker/json-schema-faker/tree/master/docs#available-options).\n\nan example options file:\n```js\nmodule.exports = {\n  minLength: 20,\n  random: () =\u003e 0.2,\n};\n```\n\n### generating to stdout\n`generate-json schema.json`\n\n### skipping a param\nYou can pass `none` to skip any of the optional params. It's useful when you need to pass a following param when skipping some of the previous params at the same time.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foprogramador%2Fjson-schema-faker-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foprogramador%2Fjson-schema-faker-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foprogramador%2Fjson-schema-faker-cli/lists"}