{"id":13527292,"url":"https://github.com/captainsafia/fony","last_synced_at":"2025-04-05T03:10:11.132Z","repository":{"id":19539152,"uuid":"87283182","full_name":"captainsafia/fony","owner":"captainsafia","description":"A simple command line tool for generating fake data from a template string","archived":false,"fork":false,"pushed_at":"2021-12-07T15:53:54.000Z","size":15,"stargazers_count":513,"open_issues_count":6,"forks_count":24,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-04-14T11:52:48.468Z","etag":null,"topics":[],"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/captainsafia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-05T08:04:05.000Z","updated_at":"2024-04-10T18:41:54.000Z","dependencies_parsed_at":"2022-07-27T00:32:16.123Z","dependency_job_id":null,"html_url":"https://github.com/captainsafia/fony","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/captainsafia%2Ffony","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/captainsafia%2Ffony/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/captainsafia%2Ffony/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/captainsafia%2Ffony/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/captainsafia","download_url":"https://codeload.github.com/captainsafia/fony/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247280272,"owners_count":20912967,"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-08-01T06:01:45.083Z","updated_at":"2025-04-05T03:10:11.109Z","avatar_url":"https://github.com/captainsafia.png","language":"JavaScript","readme":"# fony\n\nfony is a **simple** command line tool that generates dummy JSON data from\na provided template.\n\nThe application utilizes [Chance.js](http://chancejs.com/) under the hood\nso any data type supported by Chance.js is supported by fony.\n\nfony is intended to provide a simple solution to the most common data\ngeneration needs. You can use the command line to pipe output from\nfony to other tools and integrate it into your workflow.\n\n## Installation\n\n```\nnpm install --global fony\n```\n\n## Usage\n\n```\n  Usage: fony [options]\n\n  Options:\n\n    -h, --help                 output usage information\n    -V, --version              output the version number\n    -t, --template \u003ctemplate\u003e  JSON template for data to be generated\n    -c, --count [count]        The number of elements to create, defaults to 1\n\n```\n\n## Example\n\nMac and Linux folks can use single quotes around a double-quoted string of JSON like this:\n\n```\nfony -t '{\"name\": \"name\", \"age\": \"age\", \"address\": \"address\"}' -c 2\n```\n\nBut Windows handles quotes on the command line differently, so be sure to escape your strings and only use double quotes:\n\n```\nfony -t \"{\\\"name\\\": \\\"name\\\", \\\"age\\\": \\\"age\\\", \\\"address\\\": \\\"address\\\"}\" -c 2\n```\n\n## Niceties\n\nfony supports nested fixtures:\n\n```js\n$ fony -t '{\"foo\": {\"bar\": \"name\"}}'\n{\n  \"foo\": {\n    \"bar\": \"Virgie Davidson\"\n  }\n}\n```\n\nAs well as arrays:\n\n```js\n$ fony -t '{\"tags\": [\"word\", 3]}'\n{\n  \"tags\": [\n    \"oklu\",\n    \"odikabi\",\n    \"coan\"\n  ]\n}\n```\n\n![fony](https://cloud.githubusercontent.com/assets/1857993/24695518/c4ab67e8-19ab-11e7-98e3-330fa48a14d3.gif)\n","funding_links":[],"categories":["Repository","JavaScript"],"sub_categories":["Testing"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaptainsafia%2Ffony","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaptainsafia%2Ffony","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaptainsafia%2Ffony/lists"}