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.
여기에 문제를 만들어주세요. 감사해요!