1.0.4 • Published 3 years ago

unusual-api v1.0.4

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

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
1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago