Dummy-genenrator is a library that generates dummy data based on the schema you want. Especially, it is useful when you do some test. You might have tired of making dummy data for your test code. This library will help you to make dummy data easily.
- node version >= 16.20.1
- Register and Login in to OpenAPI
- Get API from OpenAPI
- Generate API token
- which is like this
sk-xxxxxxxxxxxxxxxxxxxxxxxx
- which is like this
- Install dummy-generator
$ npm install dummy-generator
- Init dummy-generator
$ dummy init sk-xxxxxxxxxxxxxxxxxxxxxxxx
# init dummy-generator with api-token
$ dummy init <api-token>
# generate dummy data
$ dummy g -f <config-file> -o <output-type> -c <count>
- default.json will be generated in the root folder
{
"output_type": "json",
"require_count": 10,
"language": "en",
"columns": [
{
"column-name": "name",
"column-description": "unique name",
"max-length": "3",
"unique": true
},
{
"column-name": "age",
"column-description": "between 20 and 30",
"max-length": "2",
"unique": false
}
]
}
welcome to contribute to this project. This project is open to anyone who wants to contribute to this project. Using the issue tracker and pull request, you can contribute to this project.
React is MIT licensed.