fortune-cookies

1.0.1 • Public • Published

Fortune Cookie Fetch

A NodeJs API Wrapper for The Fortune Cookie API to allow users to get a random fortune cookie, without the hastle of writing out large arrays!

Usage

npm install fortune-cookies

const randCookie = require('fortune-cookies')
 
randCookie.fetchCookie()
    .then((c) => {console.log(c)})
    .catch((e) => {console.error('An error occured! ', e)})
 

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i fortune-cookies

      Weekly Downloads

      3

      Version

      1.0.1

      License

      ISC

      Unpacked Size

      1.48 kB

      Total Files

      3

      Last publish

      Collaborators

      • hpaulson