index.js
function normalize(filepath) {

    // resolve to an absolute ppath
    if (!path.isAbsolute || !path.isAbsolute(filepath))
        filepath = path.resolve(path.dirname(module.parent.filename), filepath);

    // tack .json on the end if need be
    if (!/\.json$/.test(filepath))
        filepath = filepath + '.json';

    return filepath;
}
function normalize(filepath) {

    // resolve to an absolute ppath
    if (!path.isAbsolute || !path.isAbsolute(filepath))
        filepath = path.resolve(path.dirname(module.parent.filename), filepath);

    // tack .json on the end if need be
    if (!/\.json$/.test(filepath))
        filepath = filepath + '.json';

    return filepath;
}
function normalize ( filepath ) { // resolve to an absolute ppath if ( ! path . isAbsolute || ! path . isAbsolute ( filepath ) ) filepath = path . resolve ( path . dirname ( module . parent . filename ) , filepath ) ; // tack .json on the end if need be if ( ! / \.json$ / . test ( filepath ) ) filepath = filepath + '.json' ; return filepath ; }
clean up paths for convenient loading
clean up paths for convenient loading