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.
请在这里创建一个问题。谢谢!