{"id":15912940,"url":"https://github.com/tintinweb/vscode-solidity-flattener","last_synced_at":"2025-09-12T03:47:27.075Z","repository":{"id":43041820,"uuid":"195469100","full_name":"tintinweb/vscode-solidity-flattener","owner":"tintinweb","description":"Flatten Solidity Contracts using `truffle-flattener`","archived":false,"fork":false,"pushed_at":"2022-03-22T09:29:26.000Z","size":25,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T06:30:37.741Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=tintinweb.vscode-solidity-flattener","language":"JavaScript","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/tintinweb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-07-05T21:28:35.000Z","updated_at":"2022-08-20T23:38:41.000Z","dependencies_parsed_at":"2022-08-18T18:21:01.945Z","dependency_job_id":null,"html_url":"https://github.com/tintinweb/vscode-solidity-flattener","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/tintinweb/vscode-solidity-flattener","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tintinweb%2Fvscode-solidity-flattener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tintinweb%2Fvscode-solidity-flattener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tintinweb%2Fvscode-solidity-flattener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tintinweb%2Fvscode-solidity-flattener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tintinweb","download_url":"https://codeload.github.com/tintinweb/vscode-solidity-flattener/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tintinweb%2Fvscode-solidity-flattener/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274749873,"owners_count":25342223,"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","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-06T16:21:53.910Z","updated_at":"2025-09-12T03:47:27.018Z","avatar_url":"https://github.com/tintinweb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[\u003cimg width=\"200\" alt=\"get in touch with Consensys Diligence\" src=\"https://user-images.githubusercontent.com/2865694/56826101-91dcf380-685b-11e9-937c-af49c2510aa0.png\"\u003e](https://diligence.consensys.net)\u003cbr/\u003e\n\u003csup\u003e\n[[  🌐  ](https://diligence.consensys.net)  [  📩  ](mailto:diligence@consensys.net)  [  🔥  ](https://consensys.github.io/diligence/)]\n\u003c/sup\u003e\u003cbr/\u003e\u003cbr/\u003e\n\n\n# VSCode Solidity Contract Flattener\n\n[truffle-flattener](https://www.npmjs.com/package/truffle-flattener) context menu integration for vscode.\n\nAdds a context menu to flatten solidity contracts from truffle projects:\n* **NOTE/REQUIRED**: Make sure you've installed truffle and the project's dependencies (`npm install`).\n* select files, `right-click` -\u003e `Solidity: flatten selected file(s)` \n* or `cmd + shift + p` -\u003e `Solidity Flattener - flatten current file`.\n\n\u003cimg width=\"360\" alt=\"context-menu\" src=\"https://user-images.githubusercontent.com/2865694/60889644-c99fe880-a259-11e9-95d4-2899826b7d65.png\"\u003e\n\n### Developers\n\n`truffle-flattener.contextMenu.flatten` can be called by any other extension as following:\n\n* `files` .. an array of files to flatten\n* `callback` .. function to be called as `callback(string:filepath, string:truffle-path, string:flattened_contract)` on flatten success\n* `showErrors` .. enable or suppress vscode info/error notifications\n\n```js\n\n vscode.commands.executeCommand(\"vscode-solidity-flattener.flatten\", {files: files, callback:callback, showErrors:showErrors})\n        .catch(error =\u003e{\n            // command not available\n            vscode.window.showWarningMessage(\"Error running `tintinweb.vscode-solidity-flattener`. Please make sure the extension is installed.\\n\" + error)\n        })\n```\n\n\n## Credits\n\n* [truffle-flattener](https://www.npmjs.com/package/truffle-flattener)\n\n\n## Release Notes\n\nsee [CHANGELOG](./CHANGELOG.md)\n\n\n-----------------------------------------------------------------------------------------------------------\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftintinweb%2Fvscode-solidity-flattener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftintinweb%2Fvscode-solidity-flattener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftintinweb%2Fvscode-solidity-flattener/lists"}