@qgisk/jokeapi-wrapper

2.0.0 • Public • Published

Joke API Client for NodeJS

NPM version NPM downloads CodeQL Test package

A Node.js wrapper for the JokeAPI with only one dependency isomorphic-unfetch.

• Installation

npm i @qgisk/jokeapi-wrapper

• Example Project

Discord Bot | Source

• JokeAPI Documentation

For the full wrapper documentation checkout this

For complete API documentation, up-to-date parameters, responses and errors, please refer to JokeAPI.

• Quick Start Example

// Import the wrapper library
import JokeAPI from '@qgisk/jokeapi-wrapper';

// Initiate the client
const JokeClient = new JokeAPI();

// Create a function that gets a joke
const get = async () => {
  const joke = await JokeClient.getJoke();
  console.log(joke);
};

// Execute the function
get();

• Inspiration

miscavage

• License

MIT

/@qgisk/jokeapi-wrapper/

    Package Sidebar

    Install

    npm i @qgisk/jokeapi-wrapper

    Weekly Downloads

    2

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    18 kB

    Total Files

    10

    Last publish

    Collaborators

    • qgisk