cslink
v0.0.19
Published
cslink
Downloads
141
Maintainers
Readme
Client/Server link
Cslink allow smallapi users to generate a complete client using axios for their APIs.
install
npm install -g cslink
Usage
cslink {serverUrl} [dst] [install] [serverVar] [decodeKey]
Required parameters:
- serverUrl: the API server url
Optional parameters:
- dst: the destination path for generated files • default '.'
- install: true|false install required modules • default false
- serverVar: if filled replace the server url in the api client file • default null
- decodeKey: decode secret used for data encryption • default null
Example
cslink http://localhost:3097 dst=src/api install=true serverVar=process.env.REACT_APP_API_BASE_URL decodeKey=my-secret-key
Author
👤 tutanck
This README was generated with ❤️ by readme-md-generator