wikit
1.0.0
ウィキペディアの要約を簡単に取得するためのコマンドラインプログラム。
インストール
使用法
例
フラグ
出力
バグと提案
サポート開発 - 私にコーヒーを買ってください
$ 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 | デフォルトのブラウザで完全なウィキペディア記事を開きます |
--browser browser | 特定のbrowser でフルウィキペディアの記事を開きます |
-d | 曖昧性のあるCLIメニューを開きます |
-D | ブラウザで曖昧性の低いページを開きます |
--version -v | インストールされたバージョン番号を印刷します |
--name -n | プログラムの名前を印刷:Wikit |
出力は、目次の前のウィキペディア記事の段落になります。ラインの長さは、ターミナルのウィンドウサイズに基づいてきちんとラップされており、最大は約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.
ここで問題を作成してください。ありがとう!