ensureDir

1.0.6 • Public • Published

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

/ensureDir/

    Package Sidebar

    Install

    npm i ensureDir

    Weekly Downloads

    54

    Version

    1.0.6

    License

    none

    Last publish

    Collaborators

    • samxxu