const fs = require('fs');
code = fs.readFileSync('contract.sol','utf8');
var solc = require('solc');
var output = solc.compile(code, 1);
output

@@ -130,15 +130,28 @@
 de, 1);%0A
+console.log(
 output
+)
 %0A

print output to console