nachos-home

1.0.1 • Public • Published

nachos-home

Get the path to the nachos home directory

Linux OSX Windows Coverage Dependencies DevDependencies
Coverage Status

Have a problem? Come chat with us!

Join the chat at https://gitter.im/nachos/nachos-home

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

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i nachos-home

Weekly Downloads

3

Version

1.0.1

License

MIT

Last publish

Collaborators

  • omrilitov
  • eladbezalel
  • noamokman
  • amirschl