relevant-urban
Advanced tools
Comparing version 1.1.5 to 1.2.0
{ | ||
"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); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
149
8137