axios with agentkeepalive
It uses:
- Node v18.16.0+ for version 1.x
npm i @xplora-uk/axios-with-agentkeepalive
const axiosWithAgentLib = require('@xplora-uk/axios-with-agentkeepalive');
npm i
src/
__tests__/
axios.test.ts test cases for axios
agents.ts functions to create HTTP/S agents
axios.ts functions for axios
index.ts exports the features of this library
types.ts TypeScript types
npm run build
npm run test:coverage
It is important to increment version number using semantic versioning in package.json
and re-create package-lock.json
# https://docs.npmjs.com/cli/v9/commands/npm-login
# using a member in xplora-uk
npm login
# https://docs.npmjs.com/cli/v9/commands/npm-publish
npm publish --access public