From 42737aaa93d32abf1f1b153d94c7428c4d89acd2 Mon Sep 17 00:00:00 2001 From: kabeep Date: Sat, 11 May 2024 02:59:56 +0800 Subject: [PATCH] Update README.md --- README.md | 9 +++++++++ README.zh-CN.md | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/README.md b/README.md index 956f753..9be43b8 100644 --- a/README.md +++ b/README.md @@ -185,6 +185,15 @@ translate -v ## 🧙🏽‍♂️ Advanced +#### Using another npm package + +```shell +npm install -g clipboard-cli + +# Use the clipboard-cli to copy translation results to the clipboard +translate 'Translate this sentence to your clipboard' | clipboard +``` + #### Using the static accessor `$()` method ```shell diff --git a/README.zh-CN.md b/README.zh-CN.md index ff143a9..7cfc53b 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -186,6 +186,15 @@ translate -v ## 🧙🏽‍♂️ 进阶用法 +#### 使用其他 NPM 包 + +```shell +npm install -g clipboard-cli + +# Use the clipboard-cli to copy translation results to the clipboard +translate 'Translate this sentence to your clipboard' | clipboard +``` + #### 使用静态访问器 `$()` 方法 ```shell