{"_id":"@aravindhasamy/apihandler","_rev":"1-0609d17e556e1a039d5cea70df32349b","name":"@aravindhasamy/apihandler","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@aravindhasamy/apihandler","version":"1.0.0","keywords":["API Request","HTTP methods (GET, POST, PATCH, DELETE)","File handling (images, PDF)","Error handling","Authorization","Authorization header (Bearer token)","Custom header","Request Body (POST, PATCH)","Query parameters","Fetch API","Fetch request","Content-Type header","Accept header","Cache-control","No-cache","Structured error messages","Buffer handling","Network errors","Flexible API utility"],"author":{"name":"aravindhasamychs2017@gmail.com"},"license":"ISC","_id":"@aravindhasamy/apihandler@1.0.0","maintainers":[{"name":"aravindhasamy","email":"aravindhasamychs2017@gmail.com"}],"homepage":"https://github.com/Aravindha-samy/npm-packages#readme","bugs":{"url":"https://github.com/Aravindha-samy/npm-packages/issues"},"dist":{"shasum":"a4b58f259f70f96f3e6d5166bf193d1d41fe10ff","tarball":"https://registry.npmjs.org/@aravindhasamy/apihandler/-/apihandler-1.0.0.tgz","fileCount":3,"integrity":"sha512-ilQRHcU9rF9bByJdTVhy1UiyygTXIG2xKW9UAqiTOCfW5Mq+B+3e6+9d2CpyMTPTFlOlfsQTn21cK4gWFzLSJQ==","signatures":[{"sig":"MEYCIQD57znb5j+ktW4tpxT3BXZwePy0TVa+f8hxTRSbSA+HJgIhAObnCVIo4LI/aigwm6MWoJRYN5r4PAfmiJM36vQ67m6U","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8435},"main":"index.js","gitHead":"cac13cb42b6d321bc75afb6593e6dc312faafc7d","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"aravindhasamy","email":"aravindhasamychs2017@gmail.com"},"repository":{"url":"git+https://github.com/Aravindha-samy/npm-packages.git","type":"git"},"_npmVersion":"10.2.4","description":"The apiRequest function is a flexible utility designed to handle HTTP requests of various types, including GET, POST, PATCH, and DELETE. It supports making API calls to external services, handling different response types, and customizing request headers ","directories":{},"_nodeVersion":"20.11.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/apihandler_1.0.0_1737999136466_0.4783053014847065","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@aravindhasamy/apihandler","version":"1.0.1","description":"The apiRequest function is a flexible utility designed to handle HTTP requests of various types, including GET, POST, PATCH, and DELETE. It supports making API calls to external services, handling different response types, and customizing request headers ","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["API Request","HTTP methods (GET, POST, PATCH, DELETE)","File handling (images, PDF)","Error handling","Authorization","Authorization header (Bearer token)","Custom header","Request Body (POST, PATCH)","Query parameters","Fetch API","Fetch request","Content-Type header","Accept header","Cache-control","No-cache","Structured error messages","Buffer handling","Network errors","Flexible API utility"],"author":{"name":"aravindhasamychs2017@gmail.com"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/Aravindha-samy/npm-packages.git"},"bugs":{"url":"https://github.com/Aravindha-samy/npm-packages/issues"},"homepage":"https://github.com/Aravindha-samy/npm-packages#readme","_id":"@aravindhasamy/apihandler@1.0.1","gitHead":"cac13cb42b6d321bc75afb6593e6dc312faafc7d","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-fiRwNcE90PML+s0q4Sai+w+0nFb2Mwj1J8/Uz8n0EuO1V7jUzng4b+WnC8URLaieE/hD721jWwNSHx9e5Y6XFg==","shasum":"c1f3d0ea1cb3eb89b58f3c73e95257a7238c233d","tarball":"https://registry.npmjs.org/@aravindhasamy/apihandler/-/apihandler-1.0.1.tgz","fileCount":4,"unpackedSize":7849,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDMC5lFH6tWXnKWwDVUSREVs2CqtcJgVtDETMYJ14B1RAIhAJAbAma/z57ItLO6yDqscYxMHKCM+04EQw+2bhCwawt2"}]},"_npmUser":{"name":"aravindhasamy","email":"aravindhasamychs2017@gmail.com"},"directories":{},"maintainers":[{"name":"aravindhasamy","email":"aravindhasamychs2017@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/apihandler_1.0.1_1737999435764_0.9494476837348444"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-27T17:32:16.373Z","modified":"2025-01-27T17:37:16.432Z","1.0.0":"2025-01-27T17:32:16.638Z","1.0.1":"2025-01-27T17:37:15.908Z"},"bugs":{"url":"https://github.com/Aravindha-samy/npm-packages/issues"},"author":{"name":"aravindhasamychs2017@gmail.com"},"license":"ISC","homepage":"https://github.com/Aravindha-samy/npm-packages#readme","keywords":["API Request","HTTP methods (GET, POST, PATCH, DELETE)","File handling (images, PDF)","Error handling","Authorization","Authorization header (Bearer token)","Custom header","Request Body (POST, PATCH)","Query parameters","Fetch API","Fetch request","Content-Type header","Accept header","Cache-control","No-cache","Structured error messages","Buffer handling","Network errors","Flexible API utility"],"repository":{"type":"git","url":"git+https://github.com/Aravindha-samy/npm-packages.git"},"description":"The apiRequest function is a flexible utility designed to handle HTTP requests of various types, including GET, POST, PATCH, and DELETE. It supports making API calls to external services, handling different response types, and customizing request headers ","maintainers":[{"name":"aravindhasamy","email":"aravindhasamychs2017@gmail.com"}],"readme":"# @aravindhasamy/apihandler\r\n\r\n`@aravindhasamy/apihandler` is a flexible utility to handle HTTP requests of various types, including GET, POST, PATCH, and DELETE. It supports making API calls to external services, handling different response types, and customizing request headers and body content.\r\n\r\n## Description\r\n\r\nThe `apiRequest` function within this package can be used for:\r\n\r\n- Sending HTTP requests of various methods (GET, POST, PATCH, DELETE).\r\n- Handling headers like Authorization (Bearer token), custom headers, and Content-Type.\r\n- Sending request bodies for POST and PATCH methods.\r\n- Handling query parameters, network errors, and structured error messages.\r\n\r\n## Features\r\n\r\n- **Supports HTTP methods:** GET, POST, PATCH, DELETE\r\n- **Flexible API calls:** Includes handling Authorization headers, custom headers, content-type headers, and request bodies.\r\n- **Error Handling:** Provides structured error messages for network errors.\r\n- **File Handling:** Handle content like images, PDFs, etc.\r\n\r\n## Installation\r\n\r\nYou can install the `@aravindhasamy/apihandler` package using npm:\r\n\r\n```bash\r\nnpm install @aravindhasamy/apihandler\r\n```\r\n","readmeFilename":"README.md"}