Socket
Socket
Sign inDemoInstall

bf-translate

Package Overview
Dependencies
65
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bf-translate

bf is a translation tool, based on baidu translate api, that used in command line


Version published
Weekly downloads
1
Maintainers
1
Install size
1.87 MB
Created
Weekly downloads
 

Readme

Source
logo

bf

bf(Baidu Fanyi) is a translation tool, based on baidu translate api, that used in command line



logo


Install

npm install bf-translate -g

Usage

bf --help // or bf -h

// output

Usage bf [options] <query>

-v,--version        output the version number
-h,--help           show help info
-lang,--language    output the list of supported languages
--from [lang]       the source language
--to [lang]         the target language
--cases [c|p|k|s|all]   convert the result using the cases

bf is friendly to chinese-english translation. If your queries include Chinese, and without target language(--to), bf will regart queries as Chinese and translates it to English. Otherwise use --from(default is auto) and --to(default is auto) sets

bf hello, 吃饭了吗?

- Hello, have you eaten yet?

Also, you can use cases param to convert the result via the case you input. Now it supports c(camelCase), p(PascalCase), s(snake_case) and k(kebab-case), if you want to output all cases you can just use all for the case.

demo

Keywords

FAQs

Last updated on 25 Mar 2023

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc