Is there a way to display the documentation of installed NodeJS packages in a console window (as a command line tool)? Often - in case of editing on a server - it is easier to view the docs of some specific stuff right in the command window, then to start a browser.
Such as npm docs fs
or npm docs express
would be perfect, but these try to start a browser and display documentation there instead of displaying README.md
directly in the window.
Something similar to Perl's perldoc
would be a perfect solution.
Here's what I do when I'm in a hurry:
# nodedoc
# USAGE: nodedoc <name of module>
# e.g. nodedoc http
curl https://raw.githubusercontent.com/nodejs/node/master/doc/api/$1.md | pandoc --from markdown --to plain | less
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With