Compilation - solidity ethereum
Compile source code contract ( v0.4.17 / not sure if its changed)
const path = require("path");
const fs = require("fs");
const solc = require("solc");
const inboxPath = path.resolve(__dirname, "contracts", "Inbox.sol");
const source = fs.readFileSync(inboxPath, "utf8");
# the "1" argument is how many contracts we want to compile
console.log(solc.compile(source, 1));