index.js
function entrify(dir, options = {}) {

  if (!dir) {
    throw new Error('the path is required')
  }

  if (typeof dir !== 'string') {
    throw new Error('the path must be a string')
  }

  options = Object.assign({}, defaults, options)

  return entrifyFromPkg(dir, options)

}
function entrify(dir, options = {}) {

  if (!dir) {
    throw new Error('the path is required')
  }

  if (typeof dir !== 'string') {
    throw new Error('the path must be a string')
  }

  options = Object.assign({}, defaults, options)

  return entrifyFromPkg(dir, options)

}
function entrify ( dir , options = { } ) { if ( ! dir ) { throw new Error ( 'the path is required' ) } if ( typeof dir !== 'string' ) { throw new Error ( 'the path must be a string' ) } options = Object . assign ( { } , defaults , options ) return entrifyFromPkg ( dir , options ) }
Entrify a path.
@param {String} dir The path.
@param {Object} options Hash of options.
Entrify a path .