GT2/GT2-Android/node_modules/home-dir
Ren Ren Juan c5fd23b54f Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
..
.npmignore Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
LICENSE Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
README.md Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
index.js Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00
package.json Get new tree with state verified with current React Native on both platforms 2018-02-12 17:11:06 +00:00

README.md

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;