node.plugin.zsh 291 B

12345678
  1. # This works if you installed node via homebrew.
  2. export NODE_PATH="/usr/local/lib/node"
  3. # Open the node api for your current version to the optional section.
  4. # TODO: Make the section part easier to use.
  5. function node-api {
  6. open "http://nodejs.org/docs/$(node --version)/api/all.html#$1"
  7. }