Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alincode/solc-version
Retrieve Solidity compiler version information
https://github.com/alincode/solc-version
Last synced: 2 months ago
JSON representation
Retrieve Solidity compiler version information
- Host: GitHub
- URL: https://github.com/alincode/solc-version
- Owner: alincode
- Created: 2019-01-08T10:07:56.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-07T17:22:08.000Z (4 months ago)
- Last Synced: 2024-09-08T16:50:56.447Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 429 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Solc version
[![codecov](https://codecov.io/gh/alincode/solc-version/branch/master/graph/badge.svg)](https://codecov.io/gh/alincode/solc-version)
![npm downloads](https://img.shields.io/npm/dt/solc-version.svg)### Requirements
- node 16.x
### asdf
```
asdf plugin-add nodejs
```### Install
```sh
npm install solc-version
```### usage
- versions
Retrieve information about all available versions.
```js
const v = require('solc-version')
let select = await v.versions()
const { releases, nightly, all } = select
``````js
const v = require('solc-version')
const list = JSON.stringify(require('./utils/list.json'))
let select = await v.versions(list)
const { releases, nightly, all } = select
```- version2url
get a specified version to a URL
```js
const v = require('solc-version')
let version = 'v0.4.25-stable-2018.09.13'
let url = await v.version2url(version)
``````js
const v = require('solc-version')
let version = 'stable'
// let version = 'latest';
let url = await v.version2url(version)
``````js
const v = require('solc-version')
let version = 'v0.4.25-stable-2018.09.13'
const list = JSON.stringify(require('./utils/list.json'))
let url = await v.version2url(version, list)
```## License
MIT © [alincode](https://github.com/alincode/solc-version)