Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/foxfirecodes/solc-fast

a simple ESM wrapper around the native solc compiler to allow for faster compile times.
https://github.com/foxfirecodes/solc-fast

Last synced: 5 days ago
JSON representation

a simple ESM wrapper around the native solc compiler to allow for faster compile times.

Awesome Lists containing this project

README

        

# solc-fast

> a simple ESM wrapper around the native solc compiler to allow for faster compile times.

[`solc`](https://npmjs.com/package/solc) is convenient and easy to install, but it uses a WASM build of the solc compiler under the hood which is DRASTICALLY slower than using the native binary. this simple package downloads the solc native compiler and provides a simple wrapper function around calling it w/ the standard JSON format.

## installation

```bash
pnpm add solc-fast
```

## usage

```js
import { compile } from 'solc-fast'

const compiledOutput = await compile({
language: 'Solidity',
// ...
})
```