very-urban

This is a simple package to interact with the Urban Dictionary API!

Usage no npm install needed!

<script type="module">
  import veryUrban from 'https://cdn.skypack.dev/very-urban';
</script>

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"