@badstagram/urban-dictionary
v1.0.2
Published
An urban dictionary API wrapper
Readme
@badstagram/urban-dictionary
A simple Urban Dictionary API wrapper
const client = new UrbanDictionaryClient();
console.log(client.define("term"));
/**
[{
author: "...",
current_vote: "",
defid: ...,
definition: "...",
example: "...",
permalink: "...",
thumbs_down: 0,
thumbs_up: 0,
word: "...",
written_on: "...",
}, ...]
**/const client = new UrbanDictionaryClient();
console.log(client.autoComplete("term"));
/**
[{
preview: '...',
term: '...'
}, ...]
**/const client = new UrbanDictionaryClient();
console.log(client.random()); // Also supports an optional 'count' parameter
/**
[{
author: "...",
current_vote: "",
defid: ...,
definition: "...",
example: "...",
permalink: "...",
thumbs_down: 0,
thumbs_up: 0,
word: "...",
written_on: "...",
}, ...]
**/