npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

udcli

3.0.2 • Public • Published

udcli

Build Status Greenkeeper badge

A nodejs urban dictionary cli.

Install

npm install udcli -g

Example

$ udcli lgtm
 
An acronym for "Looks Good To Me", often used as a quick response after reviewing someone's essay, 
code, or design document.

Full source code:

#! /usr/bin/env node
 
if (process.argv.length === 3) {
    require('roi')
        .get({ endpoint: `http://api.urbandictionary.com/v0/define?term=${process.argv[2]}` })
        .then(response => console.log(JSON.parse(response.body).list[0].definition))
        .catch(console.log);
} else {
    console.log('Usage: node index search_term_here');
}

Keywords

none

install

npm i udcli

Downloadsweekly downloads

28

version

3.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability