ohmyzsh/plugins/node/node.plugin.zsh
2016-10-25 19:55:46 +05:30

9 lines
319 B
Bash

# Open the node api for your current version to the optional section.
# TODO: Make the section part easier to use.
function node-docs {
if [ $# -eq 0 ]; then
open_command "http://nodejs.org/docs/$(node --version)/api/all.html"
else
open_command "http://nodejs.org/docs/$(node --version)/api/$1.html"
fi
}