dist/main.js
function aegean(path) {
    if (path === null || path === undefined || path.constructor !== String) {
        throw new Error("aegean expects parameter 1 to be a string");
    }
    if (fs_1.existsSync(path) === false) {
        throw new Error("file \"" + path + "\" does not exist");
    }
    var stat = fs_1.lstatSync(path);
    if (stat.isFile() === false) {
        throw new Error("path \"" + path + "\" should target a file");
    }
    var content = fs_1.readFileSync(path).toString();
    var result = inline(content, path);
    return result;
}
function aegean(path) {
    if (path === null || path === undefined || path.constructor !== String) {
        throw new Error("aegean expects parameter 1 to be a string");
    }
    if (fs_1.existsSync(path) === false) {
        throw new Error("file \"" + path + "\" does not exist");
    }
    var stat = fs_1.lstatSync(path);
    if (stat.isFile() === false) {
        throw new Error("path \"" + path + "\" should target a file");
    }
    var content = fs_1.readFileSync(path).toString();
    var result = inline(content, path);
    return result;
}
function aegean ( path ) { if ( path === null || path === undefined || path . constructor !== String ) { throw new Error ( "aegean expects parameter 1 to be a string" ) ; } if ( fs_1 . existsSync ( path ) === false ) { throw new Error ( "file \"" + path + "\" does not exist" ) ; } var stat = fs_1 . lstatSync ( path ) ; if ( stat . isFile ( ) === false ) { throw new Error ( "path \"" + path + "\" should target a file" ) ; } var content = fs_1 . readFileSync ( path ) . toString ( ) ; var result = inline ( content , path ) ; return result ; }
Include imports statements down to the importing file.

@param {String} path The path to the file to inline.
@return {String} The inlined content.
@throws {Error} If the first parameter is not a string.
@throws {Error} If the path target a non existing file.
@throws {Error} If the path does not target a file.
Include imports statements down to the importing file .