`remix-solidity` is a tool to load and run solidity compiler. It works underneath Remix IDE plugin "Solidity Compiler" which is used to load different versions of compiler and compile the smart contracts.
### Installation
`npm install remix-solidity`
### How to use
`remix-solidity` exports:
```
{
{
Compiler: Compiler,
Compiler: Compiler,
CompilerInput: CompilerInput
CompilerInput: CompilerInput
}
}
```
`CompilerInput` can be used to form the [compiler input](https://github.com/ethereum/remix/blob/remix-solidity-readme/remix-solidity/src/compiler/types.ts#L1) by passing the [options](https://github.com/ethereum/remix/blob/remix-solidity-readme/remix-solidity/src/compiler/types.ts#L144)
`Compiler` is a class containing various methods to perform compiler related actions. Have a look to `Compiler` interface:
* @dev Get source name at passed index from last compilation result
* @param index - index of the source
*/
getSourceName(index: number): string | null;
}
```
## Contribute
Please feel free to open an issue or a pull request.
In case you want to add a code, do have a look to our contribution guidelnes [here](https://github.com/ethereum/remix/blob/master/CONTRIBUTING.md). Reach us in [Gitter](https://gitter.im/ethereum/remix) in case of any queries.