nachos-home
Get the path to the nachos home directory
Linux | OSX | Windows | Coverage | Dependencies | DevDependencies |
---|---|---|---|---|---|
Have a problem? Come chat with us!
Installation
$ [sudo] npm install nachos-home -g
Note: If you are using nachos home programmatically
$ cd /path/to/your/project$ [sudo] npm install nachos-home --save
Examples
From a command line
Print nachos home folder
$ nachos-home print/user/home/.nachos
Supports inner path parameter
$ nachos-home print foo/bar/user/home/.nachos/foo/bar
From code
Getting nachos home folder
var nachosHome = ;console; // -> /user/home/.nachosconsole; // -> /user/home/.nachos/fooconsole; // -> /user/home/.nachos/foo/barconsole; // -> /user/home/.nachos/foo/bar/...
Run Tests
$ npm test