Add helper function to open node api in browser. Add binaries installed via
npm to path. Tell node where to find things (what things?).
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,8 @@ |
0 |
+# This works if you installed node via homebrew. |
|
1 |
+export NODE_PATH="/usr/local/lib/node" |
|
2 |
+ |
|
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 |
+} |