From 852bdc3d32f0b4a01f992ed7fca17d9d03c2bb76 Mon Sep 17 00:00:00 2001 From: Satwik Kansal Date: Mon, 22 Jan 2018 11:25:49 +0530 Subject: [PATCH] Update usage instructions --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f237951..3043394 100644 --- a/README.md +++ b/README.md @@ -162,13 +162,20 @@ A good way to get the most out of these examples, in my opinion, will be just to - If no, take a deep breath, and read the explanation (and if you still don't understand, shout out! and create an issue [here](https://github.com/satwikkansal/wtfPython)). - If yes, give a gentle pat on your back, and you may skip to the next example. -PS: You can also read these examples at the command line. First install the npm package `wtfpython`, +PS: You can also read WTFpython at the command line. There's a pypi package and an npm package (supports colored formatting) for the same. + +To install the npm package [`wtfpython`](https://www.npmjs.com/package/wtfpython) ```sh $ npm install -g wtfpython ``` + +Alternatively, to install the pypi package [`wtfpython`](https://pypi.python.org/pypi/wtfpython) +```sh +$ pip install wtfpython -U +``` + Now, just run `wtfpython` at the command line which will open this collection in your selected `$PAGER`. -#TODO: Add pypi package for reading via command line (yes, this is the real wtf for now!) # 👀 Examples