mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-22 09:08:00 +00:00
e07d0f0cb7
- Move npm package from paritytech/js-revive - Rename package to `@parity/resolc`
18 lines
319 B
Markdown
18 lines
319 B
Markdown
# Usage from Node.js
|
|
|
|
```typescript
|
|
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
|
|
|
|
```bash
|
|
npx @parity/resolc@latest --bin contracts/1_Storage.sol
|
|
```
|