{"id":21853539,"url":"https://github.com/abhi11210646/fake-json-generator","last_synced_at":"2026-04-19T03:32:39.561Z","repository":{"id":57232452,"uuid":"136218979","full_name":"abhi11210646/Fake-json-generator","owner":"abhi11210646","description":"Generate JSON data for testing purpose ","archived":false,"fork":false,"pushed_at":"2018-06-06T17:26:31.000Z","size":51,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-05T09:30:38.228Z","etag":null,"topics":["fake-data","fs","json","test-data-generator"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/fake-json-generator","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/abhi11210646.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}},"created_at":"2018-06-05T18:32:44.000Z","updated_at":"2024-08-21T17:07:12.000Z","dependencies_parsed_at":"2022-08-31T20:50:56.879Z","dependency_job_id":null,"html_url":"https://github.com/abhi11210646/Fake-json-generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhi11210646%2FFake-json-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhi11210646%2FFake-json-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhi11210646%2FFake-json-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhi11210646%2FFake-json-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abhi11210646","download_url":"https://codeload.github.com/abhi11210646/Fake-json-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244852133,"owners_count":20521151,"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":["fake-data","fs","json","test-data-generator"],"created_at":"2024-11-28T01:25:36.141Z","updated_at":"2026-04-19T03:32:39.525Z","avatar_url":"https://github.com/abhi11210646.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fake JSON generator\n\u003e Fake JSON generator for playing with nodeJs fs module, testing redis cache,for creating fake REST API etc.\n\n\n\n## Installation\n\n```\n$ npm i fake-json-generator\n\n```\n\n## Usage\n\n**Note**  Keep json file in the same directory. And provide full path for JSON file.\n\nIt exposes synchronous and asynchronous methods.\n\n```js\n\n/**\n\nfakeJSON expect 2 argument first one is path and second one is number of JSON Object.\n\ne.g. fakeJSON(path, No_Of_JSON_obj);\n\n**/\n\nconst { fakeJSONSync, fakeJSON } = require(\"fake-json-generator\"); \n\n// Asynchronous\nfakeJSON(`${__dirname}/fake-JSON.json`, 200)\n    .then((res) =\u003e console.log('RESPONSE', res))\n    .catch(err =\u003e console.log('ERROR', err));\n    \n    \n// Synchronous\nconst ss = fakeJSONSync(`${__dirname}/fake-JSON.json`, 100);\n\n\n\n### Output \n\n[\n    { \"_id\": 828181167, \n    \"title\": \"Sir\", \n    \"firstName\": \"Richelle\", \n    \"lastName\": \"Charley\",\n    \"favouriteColor\": \"lightseagreen\", \n    \"about\": \"finibus maecenas dignissim vel blandit placerat sed tempor ex faucibus ...\",\n    \"address\": { \n        \"street\": \"Pitman Street\",\n        \"city\": \"Manchester\",\n        \"country\": \"Bermuda\", \n        \"countryCode\": \"BM\"\n     },\n    \"company\": \"LoopSys\",\n    \"contactDetails\": { \n        \"phone\": \"(488)-(869)-(240)\",\n        \"email\": \"Richelle.Charley@LoopSys.com\"\n     } \n    },\n    ...\n    ,\n    ...\n]\n\n\n\n\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhi11210646%2Ffake-json-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhi11210646%2Ffake-json-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhi11210646%2Ffake-json-generator/lists"}