@fizz.js/node-request
This is a request library for express.
install
add dependencies
into package.json
and run yarn install
configure
please put request
config into config/${env}.json
{
"request": {
"plugins": {
"debugger": true,
"retryDelay": true,
"charset": true,
"responseTime": true,
"verboseErrors": true,
"proxy": "",
"prefix": "",
"suffix": "",
"serializer": "camel",
"throttle": {
"active": true,
"rate": 10,
"ratePer": 10000,
"concurrent": 5
}
},
"timeout": {
"response": 60000,
"deadline": 60000
}
}
}
test
yarn test
coverage
yarn cover
build
yarn build
docs
yarn docs