1.8.91 • Published 6 years ago

doyle v1.8.91

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

Generate docs using jsDoc

A example

To use this API, we can apply this example to all of the different methods except the trivia.

const api = require('doyle');
const Doyle = new api()

console.log(Doyle.joke()) // returns the object with a lot of data.

An example of the joke:

{ link: 'https://www.reddit.com/r/Jokes/comments/3vwu15/three_blondes_are_walking_through_a_forest/',
  score: 4215,
  part1: 'Three blondes are walking through a forest',
  mature: false,
  author: 'Evertak',
  part2: '...when they spot tracks on the ground. The first blonde says: "Look, those are deer tracks."   The second blonde looks at them and says: "No you\'re wrong, those tracks obviously belong to wolves."   The third blonde thinks for a minute and says: "You\'re both wrong, these are hog tracks, I\'m sure."   They were still arguing when the train hit them.' }

For trivia:

const api = require('doyle');
const Doyle = new api()

console.log(await Doyle.trivia()) // returns the object with the stuff

An example:

{ category: 'History',
  type: 'multiple',
  difficulty: 'easy',
  question: 'Which famous world leader is famed for the saying, \'Let them eat cake\', yet is rumored that he/she never said it at all?',
  correct_answer: 'Marie Antoinette',
  incorrect_answers: [ 'Czar Nicholas II', 'Elizabeth I', 'Henry VIII' ] 
}
1.8.91

6 years ago

1.8.9

6 years ago

1.8.8

6 years ago

1.8.73

6 years ago

1.8.72

6 years ago

1.8.71

6 years ago

1.8.7

6 years ago

1.8.6

6 years ago

1.8.5

6 years ago

1.8.4

6 years ago

1.8.3

6 years ago

1.8.2

6 years ago

1.8.1

6 years ago

1.8.0

6 years ago

1.7.0

6 years ago

1.6.0

6 years ago

1.5.0

6 years ago

1.4.0

6 years ago

1.3.9

6 years ago

1.3.8

6 years ago

1.3.7

6 years ago

1.3.6

6 years ago

1.3.5

6 years ago

1.3.4

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago