Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@firanorg/alias-repellat-vero
Advanced tools
A little function that formats an error object as a nice, readable string. Works in node and the browser; in node, it will use [kleur](https://www.npmjs.com/package/kleur) to add ANSI color code escape sequences to the output string, to make it easier to
A little function that formats an error object as a nice, readable string. Works in node and the browser; in node, it will use kleur to add ANSI color code escape sequences to the output string, to make it easier to read.
unknown
in TypeScript)fs
errors; node sometimes puts the information about eg "which file couldn't be read" is sometimes in a property on the error, rather than in the error message, so by printing additional properties, it's guaranteed to be visible.npm install @firanorg/alias-repellat-vero
import { formatError } from "@firanorg/alias-repellat-vero";
const error = new Error("uh oh!");
error.context = {
user: "jeff",
session: "ewnj75hvj3v4tvmuy43er",
favoriteIceCreamFlavor: "pineapple",
};
console.log(formatError(error));
/*
Logs:
Error: uh oh!
at REPL2:1:9
The above error also had these properties on it:
{
context: {
user: 'jeff',
session: 'ewnj75hvj3v4tvmuy43er',
favoriteIceCreamFlavor: 'pineapple'
}
}
*/
MIT
FAQs
A little function that formats an error object as a nice, readable string. Works in node and the browser; in node, it will use [kleur](https://www.npmjs.com/package/kleur) to add ANSI color code escape sequences to the output string, to make it easier to
The npm package @firanorg/alias-repellat-vero receives a total of 0 weekly downloads. As such, @firanorg/alias-repellat-vero popularity was classified as not popular.
We found that @firanorg/alias-repellat-vero 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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.