package
Make directories recursively -plz
npm install mkdirplzGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
2.9 kB
Includes dependencies.
npm install mkdirplzOBS: This package uses async/await and requires Node.js 7.6
const mkdir = require('mkdirplz');
await mkdir('path/to/something');
// => path/to/something
await mkdir('path/to/myfile.js', { filepath: true });
// => path/to/This package does not create the last part of the path, since it assumes that's a filepath.
Type: Promise
Creates path recursively.
Type: String
A string file path to create.
Type: Boolean
Default: false
Set to true to skip making the last segment.
Useful if the input path is a filename.
MIT © Terkel Gjervig