Files
revive/js/resolc
PG Herveou 8ee1860f12 js: rm default process.env.RESOLC_BIN (#411)
Ran into this today, my env was set and pointing to an old version
so it's a breaking change, but I think we are better off not hardcoding
the env here, the user can do whatever they want when they invoke
compile
2025-11-13 10:16:34 +01:00
..
2025-11-03 16:10:20 +01:00

Usage from Node.js

import { compile } from "@parity/resolc";
const sources = {
["contracts/1_Storage.sol"]: {
    content: readFileSync("fixtures/storage.sol", "utf8"),
}

const out = await compile(sources);

Usage from shell

 npx @parity/resolc@latest --bin contracts/1_Storage.sol