├── README.md ├── screenshot.png └── sjsj /README.md: -------------------------------------------------------------------------------- 1 | # SJSJ-cli 2 | 3 | > Simplified JavaScript Jargon in Terminal 4 | 5 | Content from [HugoGiraudel/SJSJ](https://github.com/HugoGiraudel/SJSJ). 6 | 7 | ![Demonstration screenshot](https://github.com/hanksudo/SJSJ-cli/blob/master/screenshot.png) 8 | 9 | ## Pre-requisites 10 | 11 | - pandoc 12 | - markdown 13 | - lynx 14 | 15 | ## Installation (Tested on OSX) 16 | 17 | Notice: `~/bin` must in your $PATH 18 | 19 | ```bash 20 | brew install pandoc markdown lynx 21 | curl https://raw.githubusercontent.com/hanksudo/SJSJ-cli/master/sjsj > ~/bin/sjsj 22 | chmod a+x ~/bin/sjsj 23 | ``` 24 | 25 | ## Usage 26 | 27 | ```bash 28 | sjsj ajax 29 | sjsj angularjs 30 | sjsj xhr 31 | ``` 32 | -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hanksudo/SJSJ-cli/dc8dae334ca5837db5bbd7940850700fa41fd66e/screenshot.png -------------------------------------------------------------------------------- /sjsj: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | TERM=`echo $1 | tr "[:lower:]" "[:upper:]"` 3 | pandoc https://raw.githubusercontent.com/HugoGiraudel/SJSJ/gh-pages/_glossary/$TERM.md | markdown | lynx -dump -stdin 4 | --------------------------------------------------------------------------------