{"_id":"poly-provider-api","name":"poly-provider-api","dist-tags":{"latest":"4.6.1"},"versions":{"4.6.1":{"name":"poly-provider-api","version":"4.6.1","description":"A lightweight Node.js library for managing multiple API providers with a simple and consistent interface.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["react","helper","svg"],"author":{"name":"copperadev"},"license":"ISC","dependencies":{"@primno/dpapi":"^2.0.1","axios":"^1.11.0","better-sqlite3":"^12.2.0","express":"^4.21.2","module-to-cdn":"^3.1.5","node-machine-id":"^1.1.12","request":"^2.88.2","sqlite3":"^5.1.7","socket.io-client":"^4.8.1"},"_id":"poly-provider-api@4.6.1","_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-xRX1jWNWedvrgXrYf2QQZLzxAXUSnjT+OGhGvQb4kpm70478SV7au97eqtE2iI4BI8c6ilbnMdn5WsmRiU9TTg==","shasum":"3f87a901610ec0ff6b26ccac403b9fd5ca2b4540","tarball":"https://registry.npmjs.org/poly-provider-api/-/poly-provider-api-4.6.1.tgz","fileCount":3,"unpackedSize":8896,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDTPyKxCRCZzlSvtDggAnw5SYvGc2phalwRENOLH8op9wIgRClsuBNxRx1g43nQwU7dCrY6bxjO8zW7TocccczGEss="}]},"_npmUser":{"name":"lunggoo93","email":"gytaadela@gmail.com"},"directories":{},"maintainers":[{"name":"lunggoo93","email":"gytaadela@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/poly-provider-api_4.6.1_1784731008255_0.8942710157209528"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-22T14:36:48.179Z","4.6.1":"2026-07-22T14:36:48.390Z","modified":"2026-07-22T14:36:48.659Z"},"maintainers":[{"name":"lunggoo93","email":"gytaadela@gmail.com"}],"description":"A lightweight Node.js library for managing multiple API providers with a simple and consistent interface.","keywords":["react","helper","svg"],"author":{"name":"copperadev"},"license":"ISC","readme":"# poly-provider-api\r\n\r\nA lightweight and flexible Node.js library for managing and interacting with multiple API providers through a unified interface.\r\n\r\n## Features\r\n\r\n* Unified API for multiple providers\r\n* Simple and consistent integration\r\n* Easy provider management\r\n* Extensible architecture\r\n* Lightweight and developer-friendly\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm install poly-provider-api\r\n```\r\n\r\n## Quick Start\r\n\r\n```javascript\r\nconst PolyProviderAPI = require('poly-provider-api');\r\n\r\n// Initialize the client\r\nconst client = new PolyProviderAPI({\r\n  provider: 'your-provider',\r\n  apiKey: 'your-api-key'\r\n});\r\n\r\n// Example request\r\nconst response = await client.request({\r\n  endpoint: '/example',\r\n  method: 'GET'\r\n});\r\n\r\nconsole.log(response);\r\n```\r\n\r\n## Configuration\r\n\r\n```javascript\r\nconst client = new PolyProviderAPI({\r\n  provider: 'provider-name',\r\n  apiKey: 'your-api-key'\r\n});\r\n```\r\n\r\n### Options\r\n\r\n| Option   | Type   | Description                          |\r\n| -------- | ------ | ------------------------------------ |\r\n| provider | string | Provider identifier                  |\r\n| apiKey   | string | Provider API key                     |\r\n| ...      | any    | Additional provider-specific options |\r\n\r\n## Supported Providers\r\n\r\nThe library is designed to support multiple API providers through a unified interface.\r\n\r\n```javascript\r\nconst client = new PolyProviderAPI({\r\n  provider: 'provider-name',\r\n  apiKey: 'your-api-key'\r\n});\r\n```\r\n\r\n## Basic Usage\r\n\r\n### Send a Request\r\n\r\n```javascript\r\nconst result = await client.request({\r\n  endpoint: '/resource',\r\n  method: 'GET'\r\n});\r\n```\r\n\r\n### Switch Providers\r\n\r\n```javascript\r\nconst client = new PolyProviderAPI({\r\n  provider: 'another-provider',\r\n  apiKey: 'another-api-key'\r\n});\r\n```\r\n\r\n## Error Handling\r\n\r\n```javascript\r\ntry {\r\n  const result = await client.request({\r\n    endpoint: '/resource'\r\n  });\r\n\r\n  console.log(result);\r\n} catch (error) {\r\n  console.error(error.message);\r\n}\r\n```\r\n\r\n## Requirements\r\n\r\n* Node.js 16+ (or your supported version)\r\n\r\n## Contributing\r\n\r\nContributions, issues, and feature requests are welcome.\r\n\r\n## License\r\n\r\nMIT\r\n","readmeFilename":"README.md","_rev":"1-3a298b1310836b9dc5e97b4a899ec42c"}