copyright (c) 2010, R. S. Doiel, all rights reserved
Licensed under "The BSD License" described at http://opensource.org/licenses/bsd-license.php
nshtools comes with a simple installer. This is a simple installer written using nshtools.js to install nshtools.js module and syncme.js. It has one option.
The prefix of where you want things installed.
nshtools needs to have node already installed. See http://nodejs.org for details.
node install-nshtools.js --prefix=/usr/local
Typically node modules live in two place /usr/local/lib/node/libraries or $HOME/.node_libraries. If you write your own module or download someone elses and don’t want to play with
process.paths you wind up coping that module to where the rest of the modules live. Likewise if you’ve written an application you wind up copying it to a "bin" folder on many Unix systems. install-nshtools.js does this for you based on the prefix path.
The default prefix path is your local home directory. The installer will fail if the directories don’t exists. That is one of the ways it is simple.
|$HOME/bin for syncme.js and $HOME/.node_libraries for nshtools.js, otherwise nshtools is put in $PREFIX/lib/node/libraries.|