Nattily Polished Marbles
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

home-dir

1.0.0 • Public • Published

home-dir

Get home directory path on any platform

Install

npm install home-dir --save

Usage

var homeDir = require('home-dir');
 
console.log(homeDir()); // Outputs full path to your home directory
 
// OR
 
var dir = homeDir('/path/to/somehwere');
console.log(dir) // OUTPUTS: /(HOME)/path/to/somewhere
 
// OR
 
var homeDir = require('home-dir').directory;

install

npm i home-dir

Downloadsweekly downloads

86,964

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar