Skip to content
Node.js: extra methods for the path object.
Find file
New pull request
Latest commit 6c51756 @jprichardson 3.0.0
Failed to load latest commit information.
lib datadir on Linux
test Respect the TMPDIR env
.gitignore Initial commit. 3.0.0
LICENSE path-extra: updated copyright dates Improve documentation
package.json 3.0.0

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.


$ npm install path-extra


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

You can still use all of the vanilla Node.js path 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


(The MIT License)

Copyright (c) 2011-2015 JP Richardson

Something went wrong with that request. Please try again.