npx @irfan7junior/fetch-type -n filename.ts -f folderpath -u some_url --clip
npx @irfan7junior/fetch-type -c config.json
This should be the config.json
{
"url": "URL",
"params": {
"apikey": "SOMEKEY",
"amount": 15
},
"folder": "src/components/@interfaces",
"filename": "IInterface.ts",
"clip": true
}
Create an npm script
fetch-type with-the-flags
- -f, --folder
- -n, --filename
- -u, --url
- -c, --config
- -k, --clip