Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
relevant-urban
Advanced tools
Urban Dictionary API wrapper made for everyone with useful methods using promises and snekfetch
This module was meant to replace shitty urban module
as it uses callbacks and does useless stuff.
const urban = require('relevant-urban');
Methods | returns | description |
---|---|---|
urban('string') | => Promise<Definition> | Gets first definition from urban matching provided query |
urban.random() | => Promise<Definition> | Gets random definition from urban |
urban.all('string') | => Promise<Array<Definition>> | Gets all definitions from page 1 matching provided query |
urban.random('string') | => Promise<Definition> | Gets random definition from urban matching provided query |
urban.search('string'[, page]) | => Promise<api response> | Gets raw response from api without any formating |
NOTE: urban.random()
method doesn't have tags and sounds
Definition {
id: 69266,
word: 'hello',
definition: 'what you say when your talking casually with friends and your mom walks in the room',
example: 'What the hell(mom enters)-o mom.',
urbanURL: 'http://hello.urbanup.com/69266',
author: 'mad at the world',
thumbsUp: 3297,
thumbsDown: 936,
tags: [ 'hi', 'hey', 'greeting', 'yo', 'goodbye' ],
sounds: [ 'http://media.urbandictionary.com/sound/hello-7503.mp3',
'http://media.urbandictionary.com/sound/hello-9778.mp3',
'http://media.urbandictionary.com/sound/hello-9897.mp3',
'http://media.urbandictionary.com/sound/hello-10454.mp3',
...]
}
FAQs
Urban Dictionary API wrapper made for everyone with useful methods using promises and snekfetch
We found that relevant-urban demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.