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 - npm Package Compare versions

Comparing version 1.1.5 to 1.2.0

2

package.json
{
"name": "relevant-urban",
"version": "1.1.5",
"version": "1.2.0",
"description": "Urban Dictionary API wrapper made for everyone with useful methods using promises and snekfetch",

@@ -5,0 +5,0 @@ "main": "urban.js",

const urban = require('../urban.js');
const line = '\n' + '-'.repeat(40);
const print = urBan => console.log(
`${urBan.id} | ${urBan.word}\n\n${urBan.definition}` +
line);
console.log(line);
urban.random()
.then(d => console.log(d.definition + line));
.then(print);
urban('hello')
.then(d => console.log(d.definition + line));
.then(print);
urban.all('hello')
.then(a => console.log(a[1].definition + line));
.then(u => print(u[0]));
urban.random('hello')
.then(d => console.log(d.definition + line));
.then(print);
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