Socket
Socket
Sign inDemoInstall

aakhilv

Package Overview
Dependencies
7
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    aakhilv

The official api wrapper for aakhilv's free-to-use API services.


Version published
Weekly downloads
7
increased by600%
Maintainers
1
Install size
491 kB
Created
Weekly downloads
 

Readme

Source

api.aakhilv.me

npm bundle size Snyk Vulnerabilities for npm package npm NPM npm

The official api wrapper for aakhilv's free-to-use API services.

https://api.aakhilv.me

Installation

npm install aakhilv

Importing

let aakhilv = require("aakhilv");

Usage

Requests are made in the format of:

aakhilv.get(string endpoint, num parameter);

Where string endpoint is a string value of any one of the available endpoints listed down below, and num parameter is an optional integer value defaulting to 1 if not specified.

// Without 'num' parameter
aakhilv.get("fun/facts").then(data => {
  console.log(data);
});

// With 'num' parameter
aakhilv.get("fun/facts", 3).then(data => {
  console.log(data);
});

/* For asynchronous functions */

// Without 'num' parameter
let data = await aakhilv.get("fun/facts");
console.log(data);

// With 'num' parameter
let data = await aakhilv.get("fun/facts", 3);
console.log(data);

Endpoints

CategoryEndpoint
funfun/facts
funfun/puzzles
funfun/wyr
biobio/terms

Keywords

FAQs

Last updated on 14 Mar 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc