@nethris/joking
v1.0.9
Published
A participative API. All the users can submit their jokes!
Downloads
4
Readme
@nethris/joking
A participative API. All the users can submit their jokes!
Table of Contents
Install
npm:
npm install @nethris/joking
yarn:
yarn add @nethris/joking
Usage
Node
Random Joke
const joke = require('@nethris/joking');
joke.getRandJoke('fr').then(j => console.log(`${j.question}\n${j.answer}`))
Joke by ID
const joke = require('@nethris/joking');
joke.getJokeByID('fr', 3).then(j => console.log(`${j.question}\n${j.answer}`))
License
MIT © NETHRIS