{"id":16188794,"url":"https://github.com/emkay/rando-csv","last_synced_at":"2025-09-03T13:05:50.497Z","repository":{"id":66594970,"uuid":"61238426","full_name":"emkay/rando-csv","owner":"emkay","description":"Create a bunch of csv data","archived":false,"fork":false,"pushed_at":"2017-08-28T21:48:05.000Z","size":48,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-14T07:47:32.142Z","etag":null,"topics":["csv","csv-data","random"],"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/emkay.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2016-06-15T20:22:36.000Z","updated_at":"2023-03-24T15:43:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"d7d5fe5b-bf5e-423d-8529-361567b9e6f1","html_url":"https://github.com/emkay/rando-csv","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/emkay%2Frando-csv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emkay%2Frando-csv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emkay%2Frando-csv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emkay%2Frando-csv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emkay","download_url":"https://codeload.github.com/emkay/rando-csv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247665781,"owners_count":20975782,"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":["csv","csv-data","random"],"created_at":"2024-10-10T07:31:02.373Z","updated_at":"2025-04-07T13:43:02.736Z","avatar_url":"https://github.com/emkay.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rando-csv\nCreate a bunch of csv data\n\n## Install\n\n`npm i rando-csv`\n\n## Use\n\n```javascript\nconst fs = require('fs')\nconst randoCsv = require('rando-csv')\nconst ws = fs.createWriteStream('./example.csv')\nrandoCsv([\n  {\n    name: 'Name',\n    type: 'name',\n    method: 'firstName'\n  },\n  {\n    name: 'Phone',\n    type: 'phone',\n    method: 'phoneNumber'\n  }\n]).pipe(ws)\n```\n\n`rando-csv` takes a collection of header definitions where type and method are [`faker`](https://www.npmjs.com/package/faker) methods. For example, if you wanted fake food images `{ name: 'Food', type: 'image', method: 'food' }`. It returns a stream, so you can listen to `data` events or `pipe` it somewhere.\n\n## [COC](CODE_OF_CONDUCT.md)\n\n## [Contributing](CONTRIBUTING.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femkay%2Frando-csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femkay%2Frando-csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femkay%2Frando-csv/lists"}