Writing JSON files in choosen directory given a JavaScript objects array.
- Input
Set array in src/utils/endpoints.js
like this:
const endpoints = [
{
hostname: '',
path: ''
},
{
hostname: '',
path: ''
},
];
- Output
Set options in config.output
object in index.js
:
clearOnInit | boolean
Use this to remove all existing files in output directory.dir | string
Use this to set output folder.- Modify Custom ignores in
.gitignore
in case you prefer tracking outputs in repository.
- Not creating
json
file if endpoint does not exist.
- 🇺🇸 English