Skip to content
This repository

Ensure directory exists, create it recursively if not

branch: master

reformat

latest commit 067f80344f
Sam X. Xu authored October 04, 2012
Octocat-spinner-32 test reformat the test code June 09, 2012
Octocat-spinner-32 Readme.md Correct grammar August 29, 2012
Octocat-spinner-32 index.js reformat October 04, 2012
Octocat-spinner-32 package.json reformat October 04, 2012
Readme.md

A utility for node, ensures the directory exists, creating it recursively if not.

Example

ensureDir('./temp/path/to/nonexist/dir/', 0755, function (err) {
    if (err) return next(err);
    // your code here!
});

Installation

$ npm install ensureDir
Something went wrong with that request. Please try again.