Alastor
Hellish-fast asynchronous HTTP client for NodeJS
📖 Documentation | ✨ Examples | 🖥️ Github |
---|
Features
- ~12kb size (smaller than the competition)
- Uses TypeScript that provides hints in editor, type checking, etc.
- Asynchronous, allowing both .then chaining and async/await
- No dependencies
- Class abstraction
Installing
Node.js 8.0.0 or newer is required
npm install alastor
Simple Example
// Require using ES6 syntax; // Or using old fancy styleconst Alastor = ; // async based implementationasync { try const res = await ; console; catch err console; }; // .then based implementation ;
More examples can be found in the examples folder.
Size Comparisons
Alastor is designed to be as light-weight as possible but also have a programmatically powerful API.
Package | Size |
---|---|
alastor | |
node-fetch | |
axios | |
superagent | |
request |
License
Refer to the LICENSE file.