{"_id":"@abdulghani/axioshelper","_rev":"1-872ca1a34cfbaebfe36d229735641ee2","name":"@abdulghani/axioshelper","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@abdulghani/axioshelper","version":"1.0.0","description":"small function helps to setup axios instance","main":"./build/index.js","scripts":{"build":"babel ./src --out-dir ./build","test":"echo \"Error: no test specified\" && exit 1"},"keywords":["axios","request","instance","helper","util"],"devDependencies":{"@babel/cli":"^7.7.7","@babel/core":"^7.7.7","@babel/preset-env":"^7.7.7","babel-preset-minify":"^0.5.1"},"author":{"name":"Abdul Ghani","url":"http://abdul-ghani.com/"},"license":"ISC","peerDependencies":{"axios":"^0.19.1"},"_id":"@abdulghani/axioshelper@1.0.0","_nodeVersion":"10.17.0","_npmVersion":"6.13.1","dist":{"integrity":"sha512-rj5a7QkXKrsozYeTx0gyUfm4r4oNXAEdRQA0TL3qU2colC4ATWPw2S4bhEUsq9jx37ezrrIrdlJqsxyxIPCvJg==","shasum":"211c3793afb3afe57b6037c17219d89deb7d0735","tarball":"https://registry.npmjs.org/@abdulghani/axioshelper/-/axioshelper-1.0.0.tgz","fileCount":4,"unpackedSize":1803,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFtVeCRA9TVsSAnZWagAAKXEP/jfiRYwVjTKK26nhDKfr\nksaJ1S771Ky8ZK7KK2gHlEkvgIyECyZZSGY/6lNNMVCp3CHslvCnpcEE0ur9\nf0vIH1v+8KckOoMyGNmq5bAkErT1grYvDSkvmfzskCUVpYq2EiMLEcLLjof2\nqgkFch8yi49qp4EvNACixH0A7u8wEXgH8oW3c+eQ4+L0bIA61uBJ/7zDZrEu\ntvjRNzSaiUVladHKbVzn0n6JFQV5EGI7NY6B14XJMW7k7nAoiNXcBgq1ES/y\n6HFcRnk8akt6KQC/I0JuppitN7Pi9VoJSREy7qJsZjaD+5i8lq5ngRu52Xzi\nH0LE2j0RV+zp3A33Bb982PcmMsT0CaZ+A/+gB9IEbW037CavjXFcbmRILxBa\nVQPgNKeMHjr7jMt4s7UJUgOThYHUcl6z8S1Sx6sBnvwWP9WjnRI0XpO/2R1Z\nKsrpzr+cKKSSXAiKxYrBTQeAmKI4lCeRemuPkBc5NBvVStvwQknbnO/lt7Un\nTXFEka5GGnMl0VELbROA0ptQ7IOBUQcxk0xYBww5QQQNLW2hjNW/uHDgCfjM\nPvepB+m7kidAnUTcCvnZqLQGHeQav8DptJljF5Q9EkrxNJVcHhNhk6UdILlf\nBES4eOLHiWErueYm7yrBUfewH8lFA7KRd6aXiDY0p3VdJE+E87mmcg4NXwpt\ncv/K\r\n=O/v1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICa+JgekFGrHlujzEKOxcGI6zpoc8PQSuO/CjA+an0CLAiEA0p8yXhdOp1rrm5VIyGFJirNRv9QJk98hyheSpGk26wY="}]},"maintainers":[{"name":"abdulghani","email":"contact.abdulghani@gmail.com"}],"_npmUser":{"name":"abdulghani","email":"contact.abdulghani@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/axioshelper_1.0.0_1578554718022_0.3038796783786457"},"_hasShrinkwrap":false}},"time":{"created":"2020-01-09T07:25:17.978Z","1.0.0":"2020-01-09T07:25:18.152Z","modified":"2022-04-04T10:58:33.410Z"},"maintainers":[{"name":"abdulghani","email":"contact.abdulghani@gmail.com"}],"description":"small function helps to setup axios instance","keywords":["axios","request","instance","helper","util"],"author":{"name":"Abdul Ghani","url":"http://abdul-ghani.com/"},"license":"ISC","readme":"# Axios helper function\r\nto create axios instance based on url and config\r\n\r\n# Usage\r\n\r\n```javascript\r\n  import { createInstance } from \"@abdulghani/axioshelper\";\r\n\r\n  const myInstance = createInstance({ url: \"http://myapiaddress.com/\", timeout: 5000 });\r\n\r\n  // usage\r\n  myInstance.get(\r\n    `endpoint1`,\r\n    { page: 2 },\r\n    cancelToken\r\n  );\r\n\r\n  ```","readmeFilename":"README.md"}