1.0.0 • Published 4 years ago

mkdirt v1.0.0

Weekly downloads
63
License
ISC
Repository
github
Last release
4 years ago

Make Directory Tree (for those who need support for Node.js v8.0.0)

This function encapsulates the logic necessary to create a full directory tree (recursively). Since the recursive flag was only added to the mkdir function from the native fs package on version 10.x, I created this function to fill this gap

Installation

npm install --save mkdirt

Usage / Example

const mkdirt = require('mkdirt');

async function main() {
    await mkdirt('x/y/z', 0o775);
}

main();