0.0.2 • Published 5 years ago

node-fanyi v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

node-fanyi

一款基于 node 的命令行翻译工具,使用百度翻译开放平台 API。支持中译英、英译中。

安装

# yarn
yarn global add node-fanyi

# npm
npm install node-fanyi -g

示例

fy 你好
# 输入:你好
# 结果:Hello

fy hello
# 输入:hello
# 结果:你好

# 支持传入多个单词
fy hello world
输入:hello world
结果:你好世界

使用截图

demo