README
VAMTIGER Create Directory Recursive
Recursively create directories for a defined path.
Installation
VAMTIGER Create Directory Recursive can be installed using npm or yarn:
npm i --save vamtiger-create-directory-recursive # local
npm i --global vamtiger-create-directory-recursive # global
or
yarn add vamtiger-create-directory-recursive # local
yarn global vamtiger-create-directory-recursive #global
Usage
Import or require a referece to VAMTIGER Create Directory Recursive:
import createDirectory from 'vamtiger-create-directory-recursive';
or
const createDirectory = require('vamtiger-create-directory-recursive').default;
Creating a directory returns a Promise:
createDirectory({
path: '/some/directory/path'
})
.catch(handleError);
Since VAMTIGER Create Directory Recursive returns a Promise, it can be more conveniently invoked within an async function:
async someAsyncFunction function() {
const bashResult = await createDirectory({
path: '/some/directory/path'
});
}