ensure-directory
v1.0.2
Published
A node.js module that checks to see if a directory exists and if it doesn't, it creates it for you.
Downloads
31
Maintainers
Readme
ensure-directory
A promise based node.js module that checks to see if a directory exists and if it doesn't, it creates it for you.
Install
npm install ensure-directory
Usage
\\ Typescript
import ensureDirectory from 'ensure-directory';
\\ ES6
const ED = require('ensure-directory');
ED.ensureDirectory('/tmp/test').then(...);