Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added node.js support

  • Loading branch information...
commit c8e38517898b8a31a0f48c4d1f852750a2c5ebf8 1 parent ee535ea
@devdazed authored
View
1  node/README
@@ -0,0 +1 @@
+Node.JS BDSM Extension
View
1  node/VERSION
@@ -0,0 +1 @@
+0.0.1
View
0  node/bin/help
No changes.
View
19 node/bin/install
@@ -0,0 +1,19 @@
+#!/usr/bin/env bash
+
+#installs the latest version of nvm, node.js and npm
+if [[ "root" = "$(whoami)" ]] ; then
+ source_path="/usr/local/src"
+else
+ source_path="$HOME/.nvm"
+fi
+
+mkdir -p $source_path
+curl -Ls https://github.com/creationix/nvm/raw/master/nvm.sh > $source_path/nvm.sh
+chmod +x $source_path/nvm.sh
+
+. $source_path/nvm.sh
+
+echo ". $source_path/nvm.sh" > ~/.bashrc
+
+nvm install latest
+nvm alias default latest
Please sign in to comment.
Something went wrong with that request. Please try again.