1.0.0 • Published 5 years ago

weirdapi.js v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

The Weird API

The Weird API is the collection of random APIs.

NPM

Installing:

NPM

npm i weirdapi.js

Examples:

1.

const weirdapi = require('weirdapi.js');

let meme = weirdapi.meme()
console.log(meme);

2.

const weirdapi = require('weirdapi.js');

let reply = weirdapi.chat("Hello my friend, how are you?")
console.log(reply);

Functions:

- meme()
- chat('message')
- lyrics('song')
- cat()
- bird()
- dog()
- weather('city')
- pokemon('pokemon_name')
- qrgen('text')
- barcode('text')
- eightball('question')
- roast()
- uriEncode('url')
- uriDecode('url')
- token()
- welcomemsg()

Direct Usage:

const fetch = require("node-fetch");
var url = `https://theweirdapi.glitch.me/api/chatbot/chat?message=hello`
    fetch(url)
    .then(res => res.json())
    .then(output => console.log(output.message))
    

VISIT-WEBSITE

1.0.0

5 years ago

0.1.0

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago