wikit
1.0.0
可輕鬆獲取Wikipedia摘要的命令行程序。
安裝
用法
例子
標誌
輸出
錯誤和建議
支持開發 - 給我買咖啡
$ npm i wikit -g
語法: $ wikit <query> [-flags]
多字查詢不需要引號。
要更改默認語言,請編輯~/.config/configstore/wikit.json
。
$ wikit wikipedia
$ wikit empire state building
$ wikit linux -b
$ wikit jugo -l es --link -a
旗幟 | 描述 |
---|---|
--lang langCode -l langCode | 指定語言; langCode 是HTML ISO語言代碼 |
--all -a | 打印文章的所有部分(完整頁面)。 建議將讀者管輸入讀者, less |
--line num | 將線包長度設置為num |
--link | 摘要後,打印指向全文的鏈接 |
-b | 在默認瀏覽器中打開完整的Wikipedia文章 |
--browser browser | 在特定browser 中打開完整的Wikipedia文章 |
-d | 開放歧義CLI菜單 |
-D | 瀏覽器中的打開歧義頁面 |
--version -v | 打印安裝的版本號 |
--name -n | 打印程序的名稱:Wikit |
輸出將是Wikipedia文章的段落。線長度根據終端的窗口大小整齊地包裝,最大約為80個字符。例如:
$ wikit arch linux Arch Linux (or Arch /ˈɑːrtʃ/) is a Linux distribution for computers based on x86-64 architectures. Arch Linux is composed predominantly of free and open-source software, and supports community involvement. The design approach of the development team follows the KISS principle ("keep it simple, stupid") as the general guideline, and focuses on elegance, code correctness, minimalism and simplicity, and expects the user to be willing to make some effort to understand the system's operation. A package manager written specifically for Arch Linux, pacman, is used to install, remove and update software packages. Arch Linux uses a rolling release model, such that a regular system update is all that is needed to obtain the latest Arch software; the installation images released by the Arch team are simply up-to-date snapshots of the main system components. Arch Linux has comprehensive documentation in the form of a community wiki, called the ArchWiki. The wiki is widely regarded among the Linux community and ecosystem for often having the most recent information on a specific topic and being applicable beyond Arch Linux.
請在這裡創建一個問題。謝謝!