Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/diegofcornejo/fakerjs-data-generator
Generate JSON, SQL and CSV data with Faker JS
https://github.com/diegofcornejo/fakerjs-data-generator
csv data-generator fakerjs json sql
Last synced: about 7 hours ago
JSON representation
Generate JSON, SQL and CSV data with Faker JS
- Host: GitHub
- URL: https://github.com/diegofcornejo/fakerjs-data-generator
- Owner: diegofcornejo
- Created: 2023-09-25T04:47:20.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-23T21:03:58.000Z (7 months ago)
- Last Synced: 2024-04-23T22:40:07.672Z (7 months ago)
- Topics: csv, data-generator, fakerjs, json, sql
- Language: JavaScript
- Homepage:
- Size: 35.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fakerjs-data-generator
To install dependencies:
```bash
npm install
#or
yarn install
#or
bun install
```To run:
You can pass options to generation script, e.g.:
```bash
-f, --format Data format (json, csv, sql, all) [default: "json"]
-o, --outputPath Output directory [default: "files"]
-v, --version Show version number
-h, --help Show help
# Generate data in json format and save files in the files directory
npm run generate #default
npm run generate -f json -o files# Generate data in csv format and save files in the output directory
npm run generate --format csv --outputPath=output# Generate data in sql format and save files in the files directory
npm run generate --format sql
```For a larger dataset, you may want to increase the NODE_OPTIONS:
```bash
NODE_OPTIONS="--max-old-space-size=8192" npm run generate
```This project was created using `bun init` in bun v1.0.0. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.