{"_id":"s-apis","_rev":"6-4c07314109779c8b64067a3dc68d565a","name":"s-apis","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.0":{"name":"s-apis","version":"1.0.0","description":"axios package easy","main":"index.js","scripts":{"build":"tsc","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+ssh://git@github.com/silahpapa/s-api.git"},"author":{"name":"silah"},"license":"ISC","bugs":{"url":"https://github.com/silahpapa/s-api/issues"},"homepage":"https://github.com/silahpapa/s-api#readme","dependencies":{"axios":"^1.3.5"},"gitHead":"af2ce31b6b851181ee56153aab0285633becd566","_id":"s-apis@1.0.0","_nodeVersion":"19.7.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-tAiVqjQ9YMhWqsdP1ZXZD1aGLHP/ORu6wg1d+hqN8+n56GZvmDkKQgHCE1vDhWsc7Z8HTYpQxQdlHtp5falMSg==","shasum":"8eb9e8bd1bbe97fb217502c4764a71ff8fcc0285","tarball":"https://registry.npmjs.org/s-apis/-/s-apis-1.0.0.tgz","fileCount":5,"unpackedSize":3541,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCdxBlcBBf9RidlAfqpZgCIuYZB9GRh3zkzX7FFU1WLcgIhAPh93IBD0gQcUa2CWIAlGnpGVeBHZodmUoFvOTOd8mJb"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLdW+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqiQw//W0G72Stji4jlQiTn6Myle0/4W7VIL2tCwwUadnUa2GTmfND7\r\nYWiM+4N8kpaQAibxPscRzxdiB6XjiJffJ4ovl0BZ5evWHIpf+20SrmlNf/ez\r\nMqZapilxaqJPw7hSxY48Tb3kLjv3ghRm6C0riZNbtMf96JW3bLdxqbQiYlJ5\r\nE6JxHzbKpsKHJ1NvxdlqNy/mky0izLejAkn4D9iBOzm+PlyLLREiX27jeopx\r\nfEKVrkkHPhxJteJwH9GjzMuu+WCmUbMy2zKm+ShDhJ+rmQZ+g2sheAbZmHWp\r\n8uHk+NmzPRh7fbE/JykOkUtS8m/+jB2OEpsvNgICRzBILjpFokL1rOT30jLi\r\n8CmxDmLBoL9LGRyP4gVDKL09sX6KYgCwC6a5S0sNxB7vlthM5DOstNE4hwFj\r\n5RpwjWLbMHSF0siUmEAzUQ88shwVrabNbN5ZB2ow/j+DlTKZjSB8d1kjdOjh\r\n4j5yjMFJjzE6YN+osG5oD0LOSBhcoNURFxkaUEhUxlesVU0KvMCUYxKwUNp+\r\nyYRqhoT2WT13rV9maULAV3z1zkwGt9sv5b5BnZtIZZA7o9sxQ1N9OQx+4OEq\r\nNAcUU7l8TNcapstUpJ3cIdHfW8qRdczBO7UsdDLI8fBMaYR65dXeg//Iq0w5\r\nXfb2AmTET9xjr17Qa02IaxHwxQSvyPau2kk=\r\n=A+0h\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"silahkosgei","email":"silakosy@gmail.com"},"directories":{},"maintainers":[{"name":"silahkosgei","email":"silakosy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/s-apis_1.0.0_1680725438131_0.013467014304344493"},"_hasShrinkwrap":false},"1.0.1":{"name":"s-apis","version":"1.0.1","description":"axios package easy","main":"index.js","scripts":{"build":"tsc","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+ssh://git@github.com/silahpapa/s-api.git"},"author":{"name":"silah"},"license":"ISC","bugs":{"url":"https://github.com/silahpapa/s-api/issues"},"homepage":"https://github.com/silahpapa/s-api#readme","dependencies":{"axios":"^1.3.5"},"gitHead":"af2ce31b6b851181ee56153aab0285633becd566","_id":"s-apis@1.0.1","_nodeVersion":"19.7.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-rIu/AwC/Wgj0G3di/aNA+veJlhfyBGnEyP5RwEJiQNwzWQ94WhYJYxIbtXpZBqGydEEJMcjPSklnGk7jTKocHQ==","shasum":"61e1bfd27adad1070aeee046cf7569b4738ca5f3","tarball":"https://registry.npmjs.org/s-apis/-/s-apis-1.0.1.tgz","fileCount":6,"unpackedSize":3683,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH8Y0qUwoP2Ke/ivMBcR2pJuwZ2xZk7ZlQ2FUuOX5p1/AiALfTRAZq15LGspo9PjAjU7P1ZZTRCX0mU5o0uDyXk7OA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLdkSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrwtQ//XksN8QL+J2ZA04EQ0zi4KfZ6qMp6foHdoeJJ0VmU2BeS7TFr\r\nm0SjEC2GFlzzE6O1XkAoMSeHtF89Lsksw96CMSn80hcGkuGDYdkdyAcZwZOt\r\nTaqAI2q8Grz/abIQkl7KCHtUc9wBmvQuBUatOwGou2B2pKbs9OAPyb5Fq7df\r\nrM7SXY1acAT4VPf21OgnWE6AzlFuvCiSDb5e2RSkm97XDilj/Z3ZWa5cWwYu\r\nJO/eyybvPkdCMhFyBAeDEapJ45ksXxvKfsDxAlMrVKaF1XF0wm8o729lDpSz\r\nVeV8gwdzqLF6aFIpvhurkMJ6dtFc/PCjGEqpzqYoDCe2RolEoGp0hMAfykc3\r\nauPnsZ79Buqs7jyuHv+VUzPH4SDOaOnZDHd4Mz6DAdBYQfquf/tfnaGdyKKN\r\nm64MBs/T43pX7bi4aNWfPPX+MLpSHCim6GdA/NKgNy8ig3P75nGhQ+KlH+X4\r\nGWELy5Vj6dsbAiCYfZbWfhvlloz3C82EmNxkcEllBSNHH7ZTDXzzg4Qbi+tv\r\nicOUtbLLidY58SVWpFzB+C22v9dPf2xTMvuOAlvnDvo0wDJT8/fXwbvtFBoL\r\nCXbTsPR/iCthxlSskaXqHWAGvw3gnVwF+n4nPkTCMi5JUkdGzXhZPWWy8KsI\r\n9h2P2tg8dzuLsaUrSfxNFf3+/IktByi5jk0=\r\n=bFMh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"silahkosgei","email":"silakosy@gmail.com"},"directories":{},"maintainers":[{"name":"silahkosgei","email":"silakosy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/s-apis_1.0.1_1680726289803_0.6866521230100413"},"_hasShrinkwrap":false},"1.0.2":{"name":"s-apis","version":"1.0.2","description":"axios package easy","main":"index.ts","scripts":{"build":"tsc","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+ssh://git@github.com/silahpapa/s-api.git"},"author":{"name":"silah"},"license":"ISC","bugs":{"url":"https://github.com/silahpapa/s-api/issues"},"homepage":"https://github.com/silahpapa/s-api#readme","dependencies":{"axios":"^1.3.5"},"_id":"s-apis@1.0.2","gitHead":"d3c9d14330a65a55e9702cdab4d4da71595ff87f","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-/Guivpi74PFeg/4p8HpcavVtycX+h+cpf4BbB3AgcTNy5P65sx/fH4RhuhYky44+ae/9JWWIMoUUliY1ilWb3A==","shasum":"ee5dceb68336773464175090e900dba2baa68fee","tarball":"https://registry.npmjs.org/s-apis/-/s-apis-1.0.2.tgz","fileCount":3,"unpackedSize":5186,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgQuJhkb7Q1qINn9iEGeip8C0aFUeBE1sG7MQ4AbFppgIhAK2YvTc9AeBmrP3Jm2l59aoyHGVD3rp4JVFWmYbDNKpc"}]},"_npmUser":{"name":"silahkosgei","email":"silakosy@gmail.com"},"directories":{},"maintainers":[{"name":"silahkosgei","email":"silakosy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/s-apis_1.0.2_1701785392307_0.7932560065193563"},"_hasShrinkwrap":false},"1.0.3":{"name":"s-apis","version":"1.0.3","description":"axios package easy","main":"index.ts","scripts":{"build":"tsc","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+ssh://git@github.com/silahpapa/s-api.git"},"author":{"name":"silah"},"license":"ISC","bugs":{"url":"https://github.com/silahpapa/s-api/issues"},"homepage":"https://github.com/silahpapa/s-api#readme","dependencies":{"axios":"^1.3.5"},"_id":"s-apis@1.0.3","gitHead":"5c70a7bec30a9547ebed086237e10b38ad0dca0d","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-ZuQMCImiq4gIasXm+k4MspAW82F6XE8fVuO5cgh02wE0NLXnM0XbmWrE8Q5hmYtQVuT+JW+WSMb/xM9KqWevGg==","shasum":"f8a53d4e112c49d68580d32c2e1b88dfa9c7dd62","tarball":"https://registry.npmjs.org/s-apis/-/s-apis-1.0.3.tgz","fileCount":3,"unpackedSize":4676,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKTtpD/xpsb715PYSNf59efJCjS4jqxX7l1UhjoGaLbwIhAIT0AYXIcfM1N5oDDQ0LEreohbAGhPZ8tvY6XI/w3zmR"}]},"_npmUser":{"name":"silahkosgei","email":"silakosy@gmail.com"},"directories":{},"maintainers":[{"name":"silahkosgei","email":"silakosy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/s-apis_1.0.3_1701786258065_0.8686588572259879"},"_hasShrinkwrap":false},"1.0.4":{"name":"s-apis","version":"1.0.4","description":"axios package easy","main":"index.js","scripts":{"build":"tsc","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+ssh://git@github.com/silahpapa/s-api.git"},"author":{"name":"silah"},"license":"ISC","bugs":{"url":"https://github.com/silahpapa/s-api/issues"},"homepage":"https://github.com/silahpapa/s-api#readme","dependencies":{"axios":"^1.3.5"},"_id":"s-apis@1.0.4","gitHead":"0c6c8597fb2fa0b46ed0b7346a2ac26d520fb74a","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-D/P6ZT1F+8yUyWm0Zxu+oyc5DpOgUCRK8l5Fk362aTq0SarTo4LCIN9eKiG5FYZ/bS+VESMLbW/iOJ0Ze39/Iw==","shasum":"24f13d2af023237bcf8283f1fbb154da439b6b88","tarball":"https://registry.npmjs.org/s-apis/-/s-apis-1.0.4.tgz","fileCount":3,"unpackedSize":4676,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9Fv+zLqLDES8mKiJbiSLvCcwdULPhQG+VzgQvM6gOLAIhAKzmHKa48TX/nU4sURSp748eKHKOBijUtJBwCpPRT2OF"}]},"_npmUser":{"name":"silahkosgei","email":"silakosy@gmail.com"},"directories":{},"maintainers":[{"name":"silahkosgei","email":"silakosy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/s-apis_1.0.4_1701795326138_0.6346607688757209"},"_hasShrinkwrap":false},"1.0.5":{"name":"s-apis","version":"1.0.5","description":"axios package easy","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+ssh://git@github.com/silahpapa/s-api.git"},"author":{"name":"silah"},"license":"ISC","bugs":{"url":"https://github.com/silahpapa/s-api/issues"},"homepage":"https://github.com/silahpapa/s-api#readme","dependencies":{"axios":"^1.3.5"},"_id":"s-apis@1.0.5","gitHead":"33b102f42bd5b85092aa1f7322b8e55c44bfd3a9","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-sgF/Ul0IZePsOGpeEBB9qJO5jWi7pEqF4ldooh2U53g0YJqz83RKOq9yYbeozNpy9tFxOla/s4LGqVUCCZ3NEg==","shasum":"ef086e36475ccc1a43ad8d195d4fbae4c900c68f","tarball":"https://registry.npmjs.org/s-apis/-/s-apis-1.0.5.tgz","fileCount":3,"unpackedSize":4656,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAkCg44rAaV7IlR6FxpQIg77xpEmH9i+g4b+a0S3rGVGAiBOQBrRgjTos0XYd5si6yvt8ckuGtWc8q0zNPcYsJCSPA=="}]},"_npmUser":{"name":"silahkosgei","email":"silakosy@gmail.com"},"directories":{},"maintainers":[{"name":"silahkosgei","email":"silakosy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/s-apis_1.0.5_1701796357000_0.8108750701456207"},"_hasShrinkwrap":false},"1.0.6":{"name":"s-apis","version":"1.0.6","description":"axios package easy","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+ssh://git@github.com/silahpapa/s-api.git"},"author":{"name":"silah"},"license":"ISC","bugs":{"url":"https://github.com/silahpapa/s-api/issues"},"homepage":"https://github.com/silahpapa/s-api#readme","dependencies":{"axios":"^1.3.5","s-apis":"^1.0.5"},"_id":"s-apis@1.0.6","gitHead":"2e8c86880a29cfc6882f7b57c7ebfcd835d013bb","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-Ieci0J7C8CDJHvB6CdlQm//T0cYM4ohbqfddXnNNWaYwInLoea9hmbfJtVh0XrexwUs3YPJDs4kh1PZs/Pr5dw==","shasum":"91dd06ad73cdc7572f69024e7478e5955780c818","tarball":"https://registry.npmjs.org/s-apis/-/s-apis-1.0.6.tgz","fileCount":3,"unpackedSize":4858,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGyTgnkKzvlEvDwR1Q9L2pjKx2LuUmsRP63+boT0re+bAiEAuEWOJA3mMpxED4sQYGoA/uOGSM+cT+amw2sSAnFFxcQ="}]},"_npmUser":{"name":"silahkosgei","email":"silakosy@gmail.com"},"directories":{},"maintainers":[{"name":"silahkosgei","email":"silakosy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/s-apis_1.0.6_1701799978541_0.7749926231815849"},"_hasShrinkwrap":false}},"time":{"created":"2023-04-05T20:10:38.131Z","1.0.0":"2023-04-05T20:10:38.298Z","modified":"2023-12-05T18:12:58.971Z","1.0.1":"2023-04-05T20:24:49.981Z","1.0.2":"2023-12-05T14:09:52.466Z","1.0.3":"2023-12-05T14:24:18.216Z","1.0.4":"2023-12-05T16:55:26.359Z","1.0.5":"2023-12-05T17:12:37.160Z","1.0.6":"2023-12-05T18:12:58.777Z"},"maintainers":[{"name":"silahkosgei","email":"silakosy@gmail.com"}],"description":"axios package easy","homepage":"https://github.com/silahpapa/s-api#readme","repository":{"type":"git","url":"git+ssh://git@github.com/silahpapa/s-api.git"},"author":{"name":"silah"},"bugs":{"url":"https://github.com/silahpapa/s-api/issues"},"license":"ISC","readme":"# Axios Wrapper NPM Package\n\nThis is an NPM package that provides a wrapper for Axios HTTP client.\nIt simplifies the process of making HTTP requests to your API backend and adding authorization headers to your requests.\n\n### Installation\n To use s-apis in your project, install it via npm:\n####\n\n`$ npm i s-apis`\n\n\nUsage\nImport the functions you need from the package:\n###\n`import { doGet, doPost, doPut, doPatch, doDelete } from 's-apis'`\n\nThen, simply call the function you need\n\nThe functions return a Promise that resolves to an AxiosResponse object, so you can access the response data and status code.\n\n## Authorization\ns-apis supports authorization headers using access tokens. \nTo use this feature, simply include the token in local storage under \nthe key access_token. s-apis will automatically add the header to all requests that require authentication.\n\n#### Examples　\n\nGET request \n#####\nExample using doGet\n```\n// Get user data by ID\ndoGet('https://jsonplaceholder.typicode.com/users/1')\n  .then(response => {\n    console.log(response.data);\n  })\n  .catch(error => {\n    console.error(error);\n  });\n```\nPost request \n#####\nExample using doPost\n```\n// Create a new user\ndoPost('https://jsonplaceholder.typicode.com/users', {\n  name: 'John Doe',\n  email: 'johndoe@example.com',\n  password: 'password'\n})\n  .then(response => {\n    console.log(response.data);\n  })\n  .catch(error => {\n    console.error(error);\n  });\n\n```\n\nPUT request \n#####\nExample using doPut\n```\n// Update user data\ndoPut('https://jsonplaceholder.typicode.com/users/1', {\n  name: 'Jane Doe',\n  email: 'janedoe@example.com'\n})\n  .then(response => {\n    console.log(response.data);\n  })\n  .catch(error => {\n    console.error(error);\n  });\n\n\n```\n\nPATCH request \n#####\nExample using doPatch\n```\n// Update user data partially\ndoPatch('https://jsonplaceholder.typicode.com/users/1', {\n  name: 'Jane Doe'\n})\n  .then(response => {\n    console.log(response.data);\n  })\n  .catch(error => {\n    console.error(error);\n  });\n```\n\nDELETE request \n#####\nExample using doDelete\n```\n// Update user data partially\n// Delete a user\ndoDelete('https://jsonplaceholder.typicode.com/users/1')\n  .then(response => {\n    console.log(response.data);\n  })\n  .catch(error => {\n    console.error(error);\n  });\n```\n### Contribution\nContributions to s-apis are welcome! To contribute, please fork the repository, create a new branch, make your changes, and submit a pull request.\n","readmeFilename":"README.md"}