1.0.5 • Published 3 years ago

@irfan7junior/fetch-type v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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 --clip

Running fetch-type with config file

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
}

Running fetch-type as a dev-dependency

Create an npm script

fetch-type with-the-flags

All flags

  • -f, --folder
  • -n, --filename
  • -u, --url
  • -c, --config
  • -k, --clip