Skip to content

Instantly share code, notes, and snippets.

@barkthins
Created January 19, 2016 06:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barkthins/e906b7f8357e395a97a3 to your computer and use it in GitHub Desktop.
Save barkthins/e906b7f8357e395a97a3 to your computer and use it in GitHub Desktop.
#!/usr/bin/env node
var solc = require('solc');
var fs = require('fs');
var source = fs.readFileSync("test/constructor.sol", 'utf8');
console.log(solc.version());
var output = solc.compile(source,1);
console.log(output);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment