index.js
function makeitso(where) {
    if ('string' === typeof where) {
      where = {
        expose: path.basename(where).replace(new RegExp(path.extname(where).replace('.', '\\.') +'$'), ''),
        path: where
      };
    }

    return where;
  }
function makeitso(where) {
    if ('string' === typeof where) {
      where = {
        expose: path.basename(where).replace(new RegExp(path.extname(where).replace('.', '\\.') +'$'), ''),
        path: where
      };
    }

    return where;
  }
function makeitso ( where ) { if ( 'string' === typeof where ) { where = { expose : path . basename ( where ) . replace ( new RegExp ( path . extname ( where ) . replace ( '.' , '\\.' ) + '$' ) , '' ) , path : where } ; } return where ; }
As the libraries as run through browserify it makes sense to give them
a custom export name. When it's an object we assume that they already
follow our required structure. If this is not the case we use the filename
as the name it should be exposed under.

@param {String|Object} where Either the location of a file or object.
@returns {Object}
@api private
As the libraries as run through browserify it makes sense to give them a custom export name . When it s an object we assume that they already follow our required structure . If this is not the case we use the filename as the name it should be exposed under .