[WIP] API
Promise based HTTP request API for Node.js
⏰ Short Example
const api = new API({
baseURL: 'https://myapp.com',
timeout: 10000,
options: { credentials: 'include' }
});
const response = await api.get('/hello');
console.log(response);
❓ Why Agile Api
🚅 Straightforward
Write minimalistic, boilerplate free code that captures your intent.
For instance
- Automatic transform for JSON data
- Configurable Timeout
🎯 Easy to Use
Learn the powerful and simple tools of Agile Api in a short amount of time.
🍃 Lightweight
Agile Api has an unpacked size of 2kB
and 0 external dependencies.
⬇️ Installation
npm install @agile-ts/api
The api
package is an extension of AgileTs and doesn't work without the core
package,
which functions as the brain of AgileTs and is indispensable.
Unfortunately, we can't combine each core
with api
version.
Therefore, we have created a table which shows which versions fit together without restrictions.
@agile-ts/api | @agile-ts/core | NPM Version |
---|
v0.0.7+ | v0.0.7+ | v6+ |
v0.0.6 | v0.0.3 - v0.0.6 | v6+ |
Other Versions aren't supported anymore | | |
📄 Documentation
The Agile Api Docs are located here