path-extra contains methods that aren't included in the vanilla Node.js path package.

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() //return the user's home directory 

(The MIT License)

Copyright (c) 2011-2015 JP Richardson