Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hardhat-log-remover

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hardhat-log-remover

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

  • 2.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.1K
increased by38.55%
Maintainers
0
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 21 Jun 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc