node.plugin.zsh 241 B

123456
  1. # Open the node api for your current version to the optional section.
  2. # TODO: Make the section part easier to use.
  3. function node-docs {
  4. local section=${1:-all}
  5. open_command "https://nodejs.org/docs/$(node --version)/api/$section.html"
  6. }