ブログサービスとして人気のあるMedium。とにかく書きやすさが重視されているので、さくさくと書いていけるのが特徴となっています。読むのはWebブラウザまたはアプリですが、もっと自由に読みたいと感じる人も多いはずです。 特にプログラマであればわざわざWebブラウザを立ち上げたり、アプリを開くのは面倒かも知れません。そこで使ってみたいのがmedium-cliです。

medium-cliの使い方

medium-cliをインストールするとmediumコマンドが使えるようになります。例えば人気記事のトップ5を取ってきます。

$  medium top -n 5
? Select the article to read : (Use arrow keys)
❯ 1. "My White Boss Talked About Race in America and This is What Happened"  - 1.0k votes  - by @Mandela 
  2. "Warning: Pokemon GO is a Death Sentence if you are a Black Man."  - 1.2k votes  - by @OmariAkil 
  3. "I Am A Transwoman. I Am In The Closet. I Am Not Coming Out."  - 433 votes  - by @jencoates 
  4. "Mental Models I Find Repeatedly Useful"  - 2.5k votes  - by @yegg 
  5. "5 Practical Books I Reread Every Year To Live A Better Life"  - 1.5k votes  - by @dariusforoux 

そしてその中から記事を選んで、その場で読めるようになっています。

$  medium top -n 5
? Select the article to read : My White Boss Talked About Race in America and This is What Happened
--------------------------------------------------------------------------------

MY WHITE BOSS TALKED ABOUT RACE IN AMERICA AND THIS IS WHAT HAPPENED
[https://cdn-images-2.medium.com/max/2000/1*gCq2gxPSq9I21saGVTyS-g.jpeg] Image source: Nubian Planet
[http://www.nubianplanet.com/forums/topic/do-black-lives-matter-speak-up-for-white-people-too/]I HAVE NEVER FELT SO BLACK AT WORK
…as the day Eric Garner was killed on July 17, 2014, the day Michael Brown Jr.
was killed on August 9, 2014, the day Tamir Rice was killed on November 22,
2014, the day Walter Scott was killed on April 4, 2015, the day Freddie Gray was
killed on April 19, 2015.
  :

MediumのURLを入れるとその記事が読めるのですが、URLを調べる手段がないので基本的にはトップ記事から選んで読む形になるかと思います。Mediumも余計な装飾がなくシンプルですが、medium-cliを使えばよりテキストだけに集中して読めるようになるでしょう。

medium-cliはnode/JavaScript製のオープンソース・ソフトウェア(MIT License)です。

djadmin/medium-cli: Medium for Hackers - A CLI for Medium Stories.