Skip to content
Node.js: extra methods for the path object.
JavaScript
Find file
Latest commit 6c51756 Nov 5, 2015 @jprichardson 3.0.0
Failed to load latest commit information.
lib datadir on Linux Oct 26, 2015
test Respect the TMPDIR env Sep 30, 2015
.gitignore Initial commit. Nov 16, 2011
CHANGELOG.md 3.0.0 Nov 5, 2015
LICENSE path-extra: updated copyright dates Mar 2, 2015
README.md Improve documentation Sep 5, 2015
package.json 3.0.0 Nov 5, 2015

README.md

Node.js: path-extra

This module simply modifies the Node.js 'path' object with extra methods. It is a drop in replacement for the path module.

Installation

$ npm install path-extra

Usage

var path = require('path-extra');

You can still use all of the vanilla Node.js path methods.

Methods:

path.tempdir() // returns a temporary directory that is operating system specific
path.homedir() // returns the user's home directory
path.datadir(appname) // returns a directory to store data in for an app with the given name

License

(The MIT License)

Copyright (c) 2011-2015 JP Richardson

Something went wrong with that request. Please try again.