{"id":18394042,"url":"https://github.com/lufzle/json-chance","last_synced_at":"2025-07-15T11:05:29.625Z","repository":{"id":35069411,"uuid":"39214249","full_name":"lufzle/json-chance","owner":"lufzle","description":"Create random JSON objects using json-spawn and Chance.js","archived":false,"fork":false,"pushed_at":"2015-07-20T05:54:25.000Z","size":132,"stargazers_count":21,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-11T20:28:07.616Z","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/lufzle.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-07-16T18:45:11.000Z","updated_at":"2017-10-09T14:31:14.000Z","dependencies_parsed_at":"2022-08-25T07:20:53.482Z","dependency_job_id":null,"html_url":"https://github.com/lufzle/json-chance","commit_stats":null,"previous_names":["lufzle/json-chance","luisfarzati/json-chance"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lufzle/json-chance","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lufzle%2Fjson-chance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lufzle%2Fjson-chance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lufzle%2Fjson-chance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lufzle%2Fjson-chance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lufzle","download_url":"https://codeload.github.com/lufzle/json-chance/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lufzle%2Fjson-chance/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265430355,"owners_count":23763986,"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-11-06T02:03:31.819Z","updated_at":"2025-07-15T11:05:29.588Z","avatar_url":"https://github.com/lufzle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json-chance \n\n[![NPM version](https://badge.fury.io/js/json-chance.png)](http://badge.fury.io/js/json-chance) [![NPM downloads][npm-downloads-image]][npm-downloads-url] [![Build Status](https://secure.travis-ci.org/luisfarzati/json-chance.png)](http://travis-ci.org/luisfarzati/json-chance) [![Dependency Status](https://gemnasium.com/luisfarzati/json-chance.svg)](https://gemnasium.com/luisfarzati/json-chance) [![Donations](http://img.shields.io/gratipay/luisfarzati.svg)](https://www.gratipay.com/luisfarzati)\n\nCreate random JSON objects using [json-spawn](https://github.com/luisfarzati/json-spawn) and [Chance.js](http://chancejs.com/).\n\n### Node\n```js\nvar jsonChance = require('json-chance')\n\njsonChance('guid,name,profile(url,twitter,fbid)')\n\n// returns\n//\t{\n//\t \"guid\": \"55585f1d-aedf-50ef-9436-3cbeb3e76afc\",\n//\t \"name\": \"William McCoy\",\n//\t \"profile\": {\n//\t  \"url\": \"http://bim.gov/du\",\n//\t  \"twitter\": \"@nijgu\",\n//\t  \"fbid\": 1000053597266623\n//\t }\n//\t}\n\n```\n\n### CLI\n```bash\n$ jsonchance 'guid,name,profile(url,twitter,fbid)'\n\n{\n  \"guid\": \"55585f1d-aedf-50ef-9436-3cbeb3e76afc\",\n  \"name\": \"William McCoy\",\n  \"profile\": {\n\t  \"url\": \"http://bim.gov/du\",\n      \"twitter\": \"@nijgu\",\n      \"fbid\": 1000053597266623\n\t}\n}\n```\n\n## Installation\n\n```bash\n$ npm install json-chance\n```\n\n## Tests\n\n```bash\n$ npm test\n$ npm run coverage\n```\n\n## License\n\n[MIT](LICENSE)\n\n[npm-downloads-image]: https://img.shields.io/npm/dm/json-chance.svg\n[npm-downloads-url]: https://npmjs.org/package/json-chance\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flufzle%2Fjson-chance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flufzle%2Fjson-chance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flufzle%2Fjson-chance/lists"}