@fizz.js/node-request

1.0.0 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @fizz.js/node-request

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

506 kB

Total Files

46

Last publish

Collaborators

  • fizzjs