ntrans

Yet another Chinese-English translation tool written in Node.

Usage no npm install needed!

<script type="module">
  import ntrans from 'https://cdn.skypack.dev/ntrans';
</script>

README

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