function updateIndex()

in npm/cli/index.js [123:128]


function updateIndex() {
    var debugDirPath = path.join(process.cwd(), 'bin', 'js-debug');
    var indexHTML = fs.readFileSync(path.join(debugDirPath, 'index.html'), 'utf8');
    indexHTML = indexHTML.replace('</html>', '<script src="http://localhost:35729/livereload.js?snipver=1"></script></html>')
    fs.writeFile(path.join(debugDirPath, 'index.html'), indexHTML);
}