@irfan7junior/fetch-type
v1.0.5
Published
Fetching the type file for an async request
Readme
FETCH TS TYPE
Running fetch-type without installing
Running fetch-type without the config file
npx @irfan7junior/fetch-type -n filename.ts -f folderpath -u some_url --clipRunning fetch-type with config file
npx @irfan7junior/fetch-type -c config.jsonThis should be the config.json
{
"url": "URL",
"params": {
"apikey": "SOMEKEY",
"amount": 15
},
"folder": "src/components/@interfaces",
"filename": "IInterface.ts",
"clip": true
}Running fetch-type as a dev-dependency
Create an npm script
fetch-type with-the-flagsAll flags
- -f, --folder
- -n, --filename
- -u, --url
- -c, --config
- -k, --clip
