how is a reference manual for programmers.


gem install how

For syntax highlighting, be sure to install Pygments.


how [domain] [keywords]

how takes two arguments:

  1. domain is the domain to be searched. The following domains are currently supported:
+ [js](reference/javascript/ (JavaScript)
  1. keywords are the search terms. (All keywords are used to find a match. If your search yields no results, try using fewer keywords.)


# How do I capitalize a string in JavaScript?
how js capitalize string

The results will be paged in the program set in $PAGER. (If $PAGER isn't set, less will be used.) Additionally, if Pygments is installed, the syntax will be highlighted.