
Security News
Feross on Risky Business Weekly Podcast: npm’s Ongoing Supply Chain Attacks
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Originally a port of [debug](https://github.com/visionmedia/debug) to BuckleScript, but has since expanded a bit.
Originally a port of debug to BuckleScript, but has since expanded a bit.
/* Reason */
/* creates a logger with the given namespace */
let debug = Debug.make("my:namespace");
/* debug.log* logs the message only if the namespace of the logger is enabled */
debug.log1("The red cow jumps over the lazy giraffe");
/* debug.error* will log the message regardless of whether the namespace is
enabled, format it as an error and include a stack trace */
try (...) {
| error => a.error2("Error occurred while doing stuff: ", error)
};
/* debug.fn* groups any log output during its execution, and logs the arguments
passed to and the value returned from the function */
let loggedParse = debug.fn1("JSON.parse", Js.Json.parseExn);
See examples for more.
npm install --save bs-rebug
Then add bs-rebug
to bs-dependencies
in your bsconfig.json
:
{
...
"bs-dependencies": ["bs-rebug"]
}
FAQs
Originally a port of [debug](https://github.com/visionmedia/debug) to BuckleScript, but has since expanded a bit.
We found that bs-rebug 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.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.