2011-05-28 17:20:48 +02:00
|
|
|
# Open the node api for your current version to the optional section.
|
|
|
|
# TODO: Make the section part easier to use.
|
2011-05-30 16:07:15 +02:00
|
|
|
function node-docs {
|
2016-11-02 15:52:14 +01:00
|
|
|
local section=${1:-all}
|
2016-11-11 03:17:43 +01:00
|
|
|
open_command "https://nodejs.org/docs/$(node --version)/api/$section.html"
|
2011-05-28 17:20:48 +02:00
|
|
|
}
|
2020-10-22 19:46:22 +02:00
|
|
|
|
|
|
|
# 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'
|