index.js
function getTransform(options) {
  if (typeof options === 'string' || options instanceof String) {
    return options
  }

  if (typeof options === 'object' && options.engine) {
    return options.engine
  }

  throw new Error('options.engine not found.')
}
function getTransform(options) {
  if (typeof options === 'string' || options instanceof String) {
    return options
  }

  if (typeof options === 'object' && options.engine) {
    return options.engine
  }

  throw new Error('options.engine not found.')
}
function getTransform ( options ) { if ( typeof options === 'string' || options instanceof String ) { return options } if ( typeof options === 'object' && options . engine ) { return options . engine } throw new Error ( 'options.engine not found.' ) }
Returns the name of the transformer from the given options.
Returns the name of the transformer from the given options .