Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
hardhat-log-remover
Advanced tools
Remove Hardhat console.log imports and calls from Solidity source files
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 asbuidler-log-remover
.
npm install --save-dev hardhat-log-remover
# or
yarn add --dev hardhat-log-remover
Load plugin in Hardhat config:
require('hardhat-log-remover');
Run the Hardhat task manually:
npx hardhat remove-logs
yarn run hardhat remove-logs
Before removing logs, the plugin will ensure that all contracts can be compiled successfully.
Install dependencies via Yarn:
yarn install
Setup Husky to format code on commit:
yarn prepare
FAQs
Remove Hardhat console.log imports and calls from Solidity source files
The npm package hardhat-log-remover receives a total of 891 weekly downloads. As such, hardhat-log-remover popularity was classified as not popular.
We found that hardhat-log-remover demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.