home-dir
Get home directory path on any platform
Last updated 11 years ago by scottcorgan .
BSD-2-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install home-dir 
SYNC missed versions from official npm registry.

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;

Current Tags

  • 1.0.0                                ...           latest (10 years ago)

5 Versions

  • 1.0.0                                ...           10 years ago
  • 0.2.0                                ...           11 years ago
  • 0.1.2                                ...           11 years ago
  • 0.1.1                                ...           11 years ago
  • 0.1.0                                ...           11 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 5
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |