Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

relevant-urban

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

relevant-urban

Urban Dictionary API wrapper made for everyone with useful methods using promises and snekfetch

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
87
decreased by-22.32%
Maintainers
1
Weekly downloads
 
Created
Source

Relevant urban NPM Build Status Greenkeeper badge

Urban Dictionary API wrapper logo

This module was meant to replace shitty urban module as it uses callbacks and does useless stuff.

const urban = require('relevant-urban');
Methodsreturnsdescription
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

Example output

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',
  ...]
  }

Keywords

FAQs

Package last updated on 19 Apr 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc