🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

aakhilv

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aakhilv

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

1.1.0
latest
npm
Version published
Maintainers
1
Created
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

api

FAQs

Package last updated on 14 Mar 2022

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