# browser-solc-tron

> A wrapper of solc so that you can compile contracts in the browser

Latest version **1.0.5** (published 2018-08-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install browser-solc-tron
pnpm add browser-solc-tron
yarn add browser-solc-tron
bun add browser-solc-tron
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2018-08-15 |
| First published | 2018-08-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 645.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Daniel Merrill |
| Maintainers | wujiaolong |
| Keywords | ethereum, solidity, compiler, browser, solc |

## Links

- npm: https://www.npmjs.com/package/browser-solc-tron
- Repository: https://github.com/gitwujiaolong/browser-solc
- Homepage: https://github.com/gitwujiaolong/browser-solc#readme
- Issues: https://github.com/gitwujiaolong/browser-solc/issues
- npm.io page: https://npm.io/package/browser-solc-tron

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2018-08-15
- 1.0.41 — 2018-08-15
- 1.0.3 — 2018-08-14
- 1.0.2 — 2018-08-14
- 1.0.1 — 2018-08-14
- 1.0.0 — 2018-08-14

## README

# browser-solc-tron

tron solidity compiler

## About the fork

Forked from https://github.com/ericxtang/browser-solc to wrap it into a npm package so that it can be easily imported into a Webpack (or another bundler) web app.



## Installation

`npm install --save browser-solc-tron`

## Usage:

```javascript


import browserSolc from 'browser-solc-tron';
const getCompiler = function(){
    return new Promise((resolve,reject)=>{
        setTimeout(()=>{
            window.BrowserSolc.loadSolcJson('',(compiler)=>{
                if(compiler){
                    resolve(compiler.compile)
                }else{
                    reject('it is an error')
                }
            })

        })

    })
}

export default getCompiler;


```


## Development
To build `index.js`, run `npm run build`.

Note: browser-solc-tron does NOT implement the whole interface of solc-js.

---
_Source: https://npm.io/package/browser-solc-tron · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
