{"repo":"RyuuGan/sol-merger","free":true,"listed":false,"github":"https://github.com/RyuuGan/sol-merger","clone":"git clone https://github.com/RyuuGan/sol-merger.git","description":"Merges all imports into single file for solidity contracts","language":"TypeScript","stars":155,"topics":["solidity","smart-contracts","merger","one-file","flattener"],"license":"BSD-2-Clause","category":"blockchain-web3","readme_excerpt":"Build status Quick Usage CLI Usage Right now it only works with solidity files that are in node modules or relative to your solidity file. Simple usage: Then add following line to your package.json . This will allow you to use npm run build-contracts in your project directory. Note that contracts glob should be surrounded with \" If no output file specified then output file will be created at the same directory and appended with merged (by default), i.e. MyContract merged.sol . You can also change this behaviour by specifying --append option: You may need to use npm run to invoke the program standalone, as in npm run sol-merger . You can also get help via --help command More info about glob available at node-glob repository See tests for more examples. Post processing support It is possible right now to write your own plugins to process exports. Currently state is not used in plugins. To see available plugins take a look plugins page. All default plugins are available via shortcut syntax using filename: It is also possible to use external plugins via relative path to plugin or path relative to node modules : Note that file extension is required for plugin to be loaded. Additional root folders for searching contracts By default, sol-merger only searches for contracts in the node modules folder. However, you can include additional root folders to search for contracts. This can be done by passing a CLI argument or a parameter through the code. If additional root folders are speci","default_branch":null,"files":null,"tree":[],"storefront":"/r/RyuuGan","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/RyuuGan/sol-merger/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}