🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

translator-me

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

translator-me

A CLI translator based on the API from public areas, like Baidu Translate

0.0.2
latest
Source
npm
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

node-translator

License: MIT CI Travisnpm downloads

A CLI translator based on the API from public areas and Node.js.

Features

  • Interactive mode, auto language detection
  • Simple spelling correction
  • Based on the API from Baidu Translate (currently)
  • Only support English and Chinese (currently)

Install

npm install -g translator-me

Usage

There are two modes while using this translator.

  • CLI

    Usage: translator-me [options]
    
    Options:
      -v, --version        output the version number
      -i, --interactive    interactive mode
      -f, --from [value]   from language (default: "en")
      -t, --to [value]     to language (default: "zh")
      -q, --query <value>  query text
      -h, --help           display help for command
    
  • Interactive

    Interactive mode supports setting different destination language, and the source language is been automatically detected.

    • set en, means the destination language is English
    • set zh, means the destination language is Chinese
    • set auto, means that if the source language is English, the destination language will be Chinese, and vice versa.
    • q, means quit.

Demo

Reference

License

MIT @plantree

Keywords

translate

FAQs

Package last updated on 19 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts