wikit
1.0.0
Program baris perintah untuk mendapatkan ringkasan wikipedia dengan mudah.
Instalasi
Penggunaan
Contoh
Bendera
Keluaran
Bug & Saran
Pengembangan Dukungan - Beli saya kopi
$ npm i wikit -g
Sintaks: $ wikit <query> [-flags]
Kutipan tidak diperlukan untuk pertanyaan multi-kata.
Untuk mengubah bahasa default, edit ~/.config/configstore/wikit.json
.
$ wikit wikipedia
$ wikit empire state building
$ wikit linux -b
$ wikit jugo -l es --link -a
Bendera | Keterangan |
---|---|
--lang langCode -l langCode | Tentukan bahasa; langCode adalah kode bahasa HTML ISO |
--all -a | Cetak semua bagian artikel (halaman lengkap). Disarankan untuk menyalurkan ke pembaca misalnya less |
--line num | Atur panjang bungkus garis ke num |
--link | Cetak tautan ke artikel lengkap setelah ringkasan |
-b | Buka artikel Wikipedia lengkap di browser default |
--browser browser | Buka artikel Wikipedia lengkap di browser tertentu |
-d | Buka menu CLI disambiguasi |
-D | Buka halaman disambiguasi di browser |
--version -v | Cetak Nomor Versi Terinstal |
--name -n | Cetak Nama Program: Wikit |
Output akan menjadi paragraf dari artikel Wikipedia sebelum Daftar Isi. Panjang garis dibungkus rapi berdasarkan ukuran jendela terminal Anda, dengan maks sekitar 80 karakter. Misalnya:
$ 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.
Harap buat masalah di sini. Terima kasih!