{"id":18757714,"url":"https://github.com/libotony/sharp-compile","last_synced_at":"2025-07-23T18:33:42.333Z","repository":{"id":47975670,"uuid":"204504418","full_name":"libotony/sharp-compile","owner":"libotony","description":"A wrap of solc-js and the fs resolver for solc","archived":false,"fork":false,"pushed_at":"2021-08-11T09:52:32.000Z","size":33,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T08:33:53.508Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/libotony.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-26T15:22:42.000Z","updated_at":"2019-09-19T11:49:01.000Z","dependencies_parsed_at":"2022-08-12T15:40:52.502Z","dependency_job_id":null,"html_url":"https://github.com/libotony/sharp-compile","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libotony%2Fsharp-compile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libotony%2Fsharp-compile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libotony%2Fsharp-compile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libotony%2Fsharp-compile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libotony","download_url":"https://codeload.github.com/libotony/sharp-compile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239647191,"owners_count":19674112,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T17:44:25.271Z","updated_at":"2025-02-19T11:27:21.613Z","avatar_url":"https://github.com/libotony.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sharp Compile\n\nCompile contracts written in solidity. Wrap of [solc-js](https://github.com/ethereum/solc-js) for [sharp-cli](https://github.com/libotony/sharp-cli) `compile` command.\n\n+ Load solidity compiler by semver\n+ Compile contract source\n+ Resolve local file dependencies\n\n## API\n\n### Load solidity compiler\n\n``` javascript\n// accept semver range as the parameter\nimport { getSolidityCompiler } from '@****/sharp-compile'\n\nconst solc = getSolidityCompiler('^0.4.24')\n```\n\n### Compile contract source\n\n``` javascript\nimport { compile } from '@****/sharp-compile'\n\nconst jsonOutput = compile(solc, { contractsDirectory, file, options })\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibotony%2Fsharp-compile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibotony%2Fsharp-compile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibotony%2Fsharp-compile/lists"}