vamtiger-create-directory
v0.0.5
Published
Create a directory for defined path.
Downloads
234
Readme
VAMTIGER Create Directory
Create a directory for a defined path.
Installation
VAMTIGER Create Directory can be installed using npm or yarn:
npm install --save vamtiger-create-directory
or
yarn add vamtiger-create-directory
Usage
Import or require a referece to VAMTIGER Create Directory:
import createDirectory from 'vamtiger-create-directory';
or
const createDirectory = require('vamtiger-create-directory').default;
Creating a directory returns a Promise:
createDirectory('some createDirectory code')
.catch(handleError);
Since VAMTIGER Create Directory returns a Promise, it can be more conveniently invoked within an async function:
async someAsyncFunction function() {
const bashResult = await createDirectory('some createDirectory code');
}