ohmyzsh/plugins/node/node.plugin.zsh
2020-10-22 23:16:22 +05:30

23 lines
No EOL
591 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 {
local section=${1:-all}
open_command "https://nodejs.org/docs/$(node --version)/api/$section.html"
}
# initialise node
alias nd='node'
# Checkout the README.md for
# detailed explanation
alias ndv='node --version'
alias ndc='node -c'
alias nde='node -e'
alias ndh='node -h'
alias ndi='node -i'
alias ndr='node -r'
alias ndnd='node --no-depreciation'
alias ndnw='node --no-warnings'
alias ndtw='node --trace-warnings'
alias ndv8='node --V8-options'