Skip to content

SFantasy/node-translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-translator

NPM version build status David deps

NPM

Yet another Chinese-English translate tool written in Node.

Install

[sudo] npm install ntrans [-g]

Usage

$ ntrans chrome

 chrome

 美音: [krom]   英音: [krəʊm]

 翻译:n. 铬,铬合金;铬黄;谷歌浏览器

Develop

node-translator has been refactored with ECMAScript 6 using babeljs.

  1. Clone the project from github
  2. Run npm install to install dependencies
  3. Run npm run build to build package from ES6, or just run npm run build-watch

License

The MIT License