New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

sol-flattener

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sol-flattener

Solidity Flattener

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

Solidity Flattener

This command-line utility flattens and/or merges Solidity files.

Getting Started

sudo npm install -g sol-flattener

CLI Arguments

  • Path to the source file.
  • Path to generate the flattened file to.
  • Search paths.
  • Remove redundant empty lines. Default: false.

How to Use sol-flattener?

On your project root, run the following command.

sol-flattener ./contracts/Token.sol ./flattened/Token.sol .,../node_modules

Configuration File

Alternatively, you can create sol-flattener.json configuration file in your project root.

{
  "source": "../vesting-schedule/contracts/VestingSchedule.sol",
  "destination": "../vesting-schedule/flattened/VestingSchedule.sol",
  "search": "./,../node_modules",
  "removeRedundantEmptyLines": true
}

and then call sol-flattener instead of passing any command line argument.

Keywords

solidity

FAQs

Package last updated on 04 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts