truffle-flattener-new
v1.0.2
Published
[new] Truffle Flattener concats solidity files developed under Truffle with all of their dependencies
Downloads
3
Maintainers
Readme
truffle-flattener-new
A fork of truffle-flattener
, harmony-flattener
@solidity-parser/parser
version bumped- inline comment replacing (
//
->/* */
) - fix
http://
becomehttp:/*....
Truffle Flattener concats solidity files from Truffle and Buidler projects with all of their dependencies.
Flattener your solidity code can:
- help you verify your contract on bscscan and ethscan...
- use
solcjs
to compile your code
Installation
yarn add truffle-flattener-new
#or
npm install --save truffle-flattener-new
Usage
- use
package.json
scripts, terminal cmd
truffle-flattener <solidity-files>
- import in other js file
const flat = require('truffle-flattener-new')
const res = await flat([filename])
fs.writeFileSync(filename, res)
Limitations
Aliased imports (eg: import {symbol1 as alias, symbol2} from "filename";
) are not supported by
truffle-flattener
/harmony-flattener
.