Skip to content

About

Utility function to ensure a directory path exists and return a Promise

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

 

History

26 Commits

Folders and files

Repository files navigation

@appgeist/ensure-dir

NPM version License

Utility function to ensure a directory path exists and return a Promise. Uses mkdirp under the hood.

Usage

const ensureDir = require("@appgeist/ensure-dir");

await ensureDir("/folder/to/store/lotsa/files");

@appgeist/ensure-dir should be slightly more efficient than mkdirp-promise because it checks whether the specified path exists before trying to create it.

License

The ISC License.

About

Utility function to ensure a directory path exists and return a Promise

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages