
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
@allnulled/console-hooker
Advanced tools
Hook console.log seamlessly. Node.js or browser.
npm i -s @allnulled/console-hooker
In node.js:
require("@allnulled/console-hooker");
In html:
<script src="node_modules/@allnulled/console-hooker/console-hooker.js"></script>
Once loaded the file, ConsoleHooker
is available globally:
const {restore, original} = ConsoleHooker(function(...args) {
original(args);
const list = Array.from(args);
require("fs").appendFileSync("log.txt", JSON.stringify(list) + "\n", "utf8");
});
console.log("hi!"); // log.txt contains now ["hi!"]
console.log("hi!"); // log.txt contains now ["hi!"]\n["hi!"]
console.log("hi!"); // log.txt contains now ["hi!"]\n["hi!"]\n["hi!"]
restore();
console.log("this is not appended");
FAQs
Hook console.log seamlessly.
We found that @allnulled/console-hooker 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
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.