4.3.0 • Published 3 years ago

happy-wrapper v4.3.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

happy-wrapper

A User friendly It'sHappy API Wrapper for Node JS

Installation

npm i happy-wrapper 

Setup

const happy = require('happy-wrapper')

End Points

All available End Points as of v4.3.0

happy.gay('url')
happy.simp('url')
happy.godCat('url')
happy.elmo('message 1', 'message 2')
happy.tradeOffer('message 1', 'message 2')
happy.slap('url 1', 'url 2')
happy.ship('url 1', 'url 2')
happy.think('url')
happy.cat('option') //options: fact, image
happy.dog('option') //options: fact, image
happy.axolotl('option') //options: fact, image
happy.eightBall()
happy.meme('option') //options: title, image, link, upvotes, downvotes
happy.joke('option') //options: setup, punchline
happy.morse('option', 'message') //options: encode, decode
happy.weather('state', 'option') //options: city, region, country, condition, temp. Temp returns json
happy.imageSearch('query')
happy.lyrics('title', 'option') //options: id, title, artist, thumbnail, lyrics
happy.webStatus('web URL', 'option') //options: web url, status, name, message
happy.randomColor()
happy.ipLookup('adress', 'option') //options: ip, hostname, city, region, country, organization, postal code, timezone

Tips

If the result returns a promise eg: Promise { <pending> } do:

let buffer /*You can name this whatever you like*/ = happy.lyrics('lovely', 'artist') //As an example

buffer.then(function (data) {
    console.log(data)
})

Image End Points are not working sometimes, what to do?

Be cautious on what links you put in the function! Or if nothing happens, Open an issue in our GitHub.

Or if you know how to fix, simply fork our project, make the changes, and open a pull request.

Developers

ItsHappy#3837 - API

Alconera130#4376 - API Wrapper

4.1.0

3 years ago

4.3.0

3 years ago

4.2.0

3 years ago

4.0.1

3 years ago

4.0.2

3 years ago

3.0.0

3 years ago

2.2.0

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.5.0

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0-b

3 years ago

1.0.0

3 years ago