🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

nachos-home

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nachos-home

Get the path to the nachos home directory

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
2
-71.43%
Maintainers
3
Weekly downloads
 
Created
Source

nachos-home

Get the path to the nachos home directory

LinuxOSXWindowsCoverageDependenciesDevDependencies
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

Keywords

nachos

FAQs

Package last updated on 28 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts