Skip to content

nainemom/vocabul

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vocabul

Improve your vocabulary from command-line!

Installation

npm i vocabul -g

Usage

vocabul [...arguments]

Arguments

Argument Description Default
--action -a Required and Should be one of "translate", "random", or "interval"
--dictionary -d Local dictionary name "default"
--from -f Source language for "translate" action "auto"
--to -t Target language for "translate" action
--word -w Input word for "translate" action
--add -y Add translated word to dictionary
--period -p "interval" action interval period 1
--command -c "interval" action run command "notify-send"
--version -v Show installed version
--help -h Show help

Example

vocabul -a translate -f en -t fa -y -w Hello # Translate "Hello" from english to persian and add it to "default" dictonary
vocabul -a random -d custom # Show word:translation from "custom" dictonary
vocabul -a interval -p 2 -c "notify-send" # Notify word:translation from "default" dictonary every 2 minute

About

Improve your vocabulary from command-line!

Topics

Resources

Stars

Watchers

Forks