10 lines
218 B
JavaScript
10 lines
218 B
JavaScript
'use strict'
|
|
|
|
const ud = require('./urban-dictionary')
|
|
|
|
ud.define('test').then((results) => {
|
|
console.log(results[0].word)
|
|
console.log(results[0].definition)
|
|
}).catch((error) => {
|
|
console.error(error.message)
|
|
})
|