unusual-api
v1.0.4
Published
UnusualAPI is an API that interacts with mongoose , and some cool stuffs.
Downloads
3
Maintainers
Readme
Installation 🔨
$ npm i unusual-api
Current Features 🔮
Google 🔎 ( Search something from google )
const { google } = require('unusual-api')
const answer = await google('Javascript MDN')
console.log(`Title: ${answer.items[0].title} & URL: ${answer.items[0].link}`)
Meme 🐸 ( Get a random meme from subreddit meme )
const { meme } = require('unusual-api');
const result = await meme();
console.log(`IMAGE: ${result.url}` + `TITLE ${result.title}` + `POST LINK: ${result.postLink}`)
UnusualDB 📂 ( Interact with mongoose easily )
Setup
const { unusualDB } = require('unusual-api');
const data = new unusualDB(`MONGODB SRV`)
module.exports = data;
Set ( Create or Set the value of a document );
data.set(`QUERY_1`, `npm i unusual-api`)
get ( Gets the value of a document from the query )
data.get(`QUERY_1`) // returns "npm i unusual-api"
delete ( Deletes a document from the query )
data.delete(`QUERY_1`) // deletes the value and the query