1.0.12 • Published 2 years ago

@jiltq/urban.js v1.0.12

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

urban.js

urban.js is a lightweight Node.js module that allows you to easily interact with the Urban Dictionary API.

features

  • term definitions

example usage

to define "javascript":

const urban = require('urban.js');

(async () => {
	const [answer] = await urban.define('javascript');
	console.log(answer);
})();

to get a random definition:

const { randomArray } = require('urban.js');

(async () => {
	const randomAnswer = randomArray(await urban.define('javascript'));
	console.log(randomAnswer);
})();

example output

{
	definition: 'A computer [programming language], provides a [source] of [endless suffering] for many poor middle-schoolers throughout the world (including myself).',
	permalink: 'http://javascript.urbanup.com/13778263',
	thumbs_up: 50,
	sound_urls: [],
	author: "stanley yelnats :')",
	word: 'javascript',
	defid: 13778263,
	current_vote: '',
	written_on: '2019-04-05T02:52:22.489Z',
	example: '"You have an [assignment] on javascript for [summer break]"',
	thumbs_down: 13
}
1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.0

2 years ago