index.js
function load(file) {

    let contents = null;

    file = path.resolve(file);

    // handle .env files
    if (constants.REGEX.envfile.test(file)) {
        contents = util.parse(fs.readFileSync(file, 'utf8'));

    // handle .js/.json files
    } else {
        contents = require(file);
    }

    return env(contents);

}
function load(file) {

    let contents = null;

    file = path.resolve(file);

    // handle .env files
    if (constants.REGEX.envfile.test(file)) {
        contents = util.parse(fs.readFileSync(file, 'utf8'));

    // handle .js/.json files
    } else {
        contents = require(file);
    }

    return env(contents);

}
function load ( file ) { let contents = null ; file = path . resolve ( file ) ; // handle .env files if ( constants . REGEX . envfile . test ( file ) ) { contents = util . parse ( fs . readFileSync ( file , 'utf8' ) ) ; // handle .js/.json files } else { contents = require ( file ) ; } return env ( contents ) ; }
load a file's contents and add to env
load a file s contents and add to env