
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
fun-webpack-logger
Advanced tools
A simple logger that will indicate when a webpack build has started, succeeded, or failed, with colors and emojis!
A simple configurable logger that will indicate when a webpack build has started, succeeded or failed, with colors and emojis!
Example:
const funLogger = require('fun-webpack-logger'),
Chalk = require('chalk'),//these libraries (or others) can be used to color the output however you like with custom options below
ChalkAnimation = require('chalk-animation');
let logger = new funLogger({//these are all of the default options and their values.
holidays: true,//if false, holiday greetings will not be displayed in the success output
startMessage: "Webpack build started",//Message to be displayed when a build begins
successMessage: "Webpack build success",//Message to be displayed when a build succeeds
errorMessage: "Webpack build failed",//Message to be displayed when a build fails
startSymbols: ['🙏', '🙏', '🍩'],//symbols to display surrounding the start message
successSymbols: ['💯', '🙌', '🎉'],//symbols to display surrounding the success message
errorSymbols: ['😱', '😱', '💩'],//symbols to display surrounding the error message
animationTimeout: 1000 * 60 * 5,//Stop the animation after this many milliseconds, default 5 minutes
//action to perform when start message is displayed.
//Multiple can be included in the array, or a single function only.
//If this is populated, the default behavior will not be performed.
//'this' is the options object, first parameter is the full message that will display.
onStart: [
function (x) {
console.log(Chalk.cyan(x));
}
],
onSuccess: [//action to perform when success message is displayed. Same rules as onStart apply.
function(x) {
let animation = ChalkAnimation.rainbow(x);
setTimeout(() => animation.stop(), this.animationTimeout);
}
],
onError: [//action to perform when error message is displayed. Same rules as onStart apply.
function (x) {
let animation = ChalkAnimation.pulse(x);
setTimeout(() => animation.stop(), this.animationTimeout);
}
],
});
module.exports = {
...
"plugins": [
logger
]
}
This will output the following:
Beginning:
------------------------------------------------------------------
🙏🙏🍩 Webpack build started 🍩🙏🙏
------------------------------------------------------------------
Success:
------------------------------------------------------------------
💯🙌🎉 Webpack build success (47.606s) 🎉🙌💯
Happy National Crunchy Taco Day!
------------------------------------------------------------------
Failure:
------------------------------------------------------------------
😱😱💩 Webpack build failed 💩😱😱
------------------------------------------------------------------
FAQs
A simple logger that will indicate when a webpack build has started, succeeded, or failed, with colors and emojis!
The npm package fun-webpack-logger receives a total of 6 weekly downloads. As such, fun-webpack-logger popularity was classified as not popular.
We found that fun-webpack-logger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.