Socket
Socket
Sign inDemoInstall

@jiltq/urban.js

Package Overview
Dependencies
7
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @jiltq/urban.js

Urban Dictionary API wrapper


Version published
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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
}

FAQs

Last updated on 01 Jan 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc