New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

define-this

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

define-this

Get the definition of words on the command line.

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

define-this

Get the definitions and synonyms of words from the comfort of your terminal. ⚡

Install

# Install globally
npm install -g define-this

# Or run directly with npx (this installs the package on every run)
npx define-this

Usage

Display the definition of a word

# Displays the definition of bloody
define-this define -w bloody

# For phrases, use quotes
define-this define -w "mad oh"

Display synonyms of a word

# Displays a synonym of phenomenon
define-this synonym -w phenomenon

# Displays three synonyms of phenomenon
define-this synonym -w phenomenon -n 3

Other features

  • Caching: Since external APIs are used to get the definitions and synonyms of words, the result of each successful request gets cached for offline use. ⚡

Todo

  • Make commands and argument follow each other in a simpler and easier to understand way

  • Add interactive spinner/loader-like texts while users await results

  • Display translation of words from one language to another

Contributing

Your beautiful PRs are always welcome. 🤗

APIS used

  • An unofficial Urban Dictionary API

  • Datamuse API

FAQs

Package last updated on 31 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts