Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

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

Install

npm i nachos-home

DownloadsWeekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar