var exec = require('child_process').exec;
exec('git init',{cwd:'./public/'},function(error,stdout,stderr){
exec('git status',{cwd:'./public/'},function(error,stdout,stderr){
exec('git add .',{cwd:'./public/'},function(error,stdout,stderr){
exec('git commit -m "sadsdasd"',{cwd:'./public/'},function(error,stdout,stderr){
exec('git push origin master:username,{cwd:'./public/'},function(error,stdout,stderr){
});
});
});
});
});
fs.writeFile('./public/library.js',obfuscationResult.getObfuscatedCode(),function(err){
fs.readFile('./public/library.js',"utf8",function(error,data){
var rl = readline.createInterface({
input:process.stdin,
output:process.stdout
});
rl.question('What do you think of Node.js? ', (answer) => {
fs.writeFile('./public/library.js','/*\n* JavaScript Library v'+answer);
fs.appendFile('./public/library.js',data);
rl.close();
});
});
});