0.1.0 • Published 10 years ago

ydict-client v0.1.0

Weekly downloads
8
License
MIT
Repository
github
Last release
10 years ago

ydict-client Build Status

A command-line interface to Yahoo's online English-Chinese dictionary.

Features

  • Displaying definitions in color
  • Highlighting keywords and their variants
  • Auto-correcting spelling

Screenshot

ydict-client

Installation

$ npm install -g ydict-client

Usage

$ ydict-client <word or phrase>

Examples

$ ydict-client word
$ ydict-client look up

API

To use it programmatically:

var ydictClient = require('ydict-client');

ydictClient('word', function(error, definition) {
  if (error) throw new Error(error);
  console.log(JSON.stringify(definition));
});

Tests

$ npm install
$ npm test

Credits

I'd been using ydict from Homebrew until it ceased to work. I decided to maintain my own version to avoid this situation. Inspiration and code come from chunghe/ydict and sayuan/ydict.js. Thank you all!

License

MIT

0.1.0

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago