lib/index.js
function createDirectory(options) {
  return new Promise(function(resolve, reject) {
    mkdirp( options.directory, function (err) {
      if(err && err.code !== 'EEXIST') {
        reject(err);
      } else {
        resolve(options);
      }
    });
  });
}
function createDirectory(options) {
  return new Promise(function(resolve, reject) {
    mkdirp( options.directory, function (err) {
      if(err && err.code !== 'EEXIST') {
        reject(err);
      } else {
        resolve(options);
      }
    });
  });
}
function createDirectory ( options ) { return new Promise ( function ( resolve , reject ) { mkdirp ( options . directory , function ( err ) { if ( err && err . code !== 'EEXIST' ) { reject ( err ) ; } else { resolve ( options ) ; } } ) ; } ) ; }
Create directory to hold files.
@param  {Object}  options            Options data
@param  {String}  options.directory  Directory
@param  {Object}  options.json       JSON data.
@return {void}
Create directory to hold files .