very-urban
v1.0.2
Published
This is a simple package to interact with the Urban Dictionary API!
Downloads
7
Readme
What is this?
This is a simple package to interact with the Urban Dictionary API!
How do i install and use this?
You can install it by doing:
npm i very-urban
, and use it by simply doing:
const urbanDictionary = require("very-urban")
const dictionary = new urbanDictionary() //initializes the urbanDictionary class
dictionary.search("urban") //searches for the word "urban"
.then(d => console.log(d)) //logs the first result
dictionary.getAllResults("urban") //searches for the word "urban"
.then(d => console.log(d)) // logs all the results for "urban"