Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

alastor

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alastor

Hellish-fast asynchronous HTTP client for NodeJS

  • 0.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
24
increased by41.18%
Maintainers
1
Weekly downloads
 
Created
Source

Alastor

Hellish-fast asynchronous HTTP client for NodeJS

📖 DocumentationExamples🖥️ 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
import Alastor from 'alastor';

// Or using old fancy style
const Alastor = require('alastor');

// async based implementation
(async () => {
  try {
    const res = await alastor('https://example.com');
    console.log(res.body);
  } catch (err) {
    console.error(err);
  }
})();

// .then based implementation
alastor('https://example.com')
  .then((res) => {
    console.log(res.body);
  })
  .catch((err) => {
    console.error(err);
  });

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.

PackageSize
alastoralastor package size
node-fetchnode-fetch package size
axiosaxios package size
superagentsuperagent package size
requestrequest package size

License

Refer to the LICENSE file.

Keywords

FAQs

Package last updated on 21 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc