nachos-home
v1.0.1
Published
Get the path to the nachos home directory
Downloads
19
Readme
nachos-home
Get the path to the nachos home directory
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 = require('nachos-home');
console.log(nachosHome()); // -> /user/home/.nachos
console.log(nachosHome('foo')); // -> /user/home/.nachos/foo
console.log(nachosHome('foo', 'bar')); // -> /user/home/.nachos/foo/bar
console.log(nachosHome(['foo', ['bar', ...]])); // -> /user/home/.nachos/foo/bar/...
Run Tests
$ npm test