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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.6
    50
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.6
    50
  • 1.0.4
    2
  • 1.0.2
    0
  • 1.0.1
    2
  • 1.0.0
    0

Package Sidebar

Install

npm i ensureDir

Weekly Downloads

54

Version

1.0.6

License

none

Last publish

Collaborators

  • samxxu