urban-dictionary/example.js
2023-12-28 14:53:00 -05:00

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)
})