hardhat-log-remover
TypeScript icon, indicating that this package has built-in type declarations

2.1.1 • Public • Published

Hardhat Log Remover

Remove Hardhat console.log imports and calls from Solidity source code.

This plugin is intended in part to keep version-controlled code free of log statements. To remove logs from compiled contracts while preserving them in source code, see hardhat-preprocessor.

Versions of this plugin prior to 2.0.0 were released as buidler-log-remover.

Installation

npm install --save-dev hardhat-log-remover
# or
yarn add --dev hardhat-log-remover

Usage

Load plugin in Hardhat config:

require('hardhat-log-remover');

Run the Hardhat task manually:

npx hardhat remove-logs

or

yarn run hardhat remove-logs

Before removing logs, the plugin will ensure that all contracts can be compiled successfully.

Development

Install dependencies via Yarn:

yarn install

Setup Husky to format code on commit:

yarn prepare

Package Sidebar

Install

npm i hardhat-log-remover

Weekly Downloads

7,144

Version

2.1.1

License

MIT

Unpacked Size

14.4 kB

Total Files

31

Last publish

Collaborators

  • itsnickbarry