2.0.0 • Published 3 years ago

@qgisk/jokeapi-wrapper v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Joke API Client for NodeJS

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

2.0.0

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago