
Security News
npm Tooling Bug Incorrectly Marks One-Character Packages as Security Holders
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.
@stephansama/typed-env
Advanced tools
standard schema compatible environment validator
pnpm install @stephansama/typed-env
is already a namespace import
import * as z from "zod";
import { createEnvironment } from "@stephansama/typed-env";
export const config = createEnvironment(
z.object({
GENERATIVE_API_KEY: z.string().trim(),
OTHER_SUPER_SECRET_KEY: z.string().trim(),
}),
);
export async function generateExample() {
return await config.generateExample(".env.example");
}
export async function validateEnvironment() {
return await config.validate();
}
FAQs
standard schema compatible environment validator
We found that @stephansama/typed-env demonstrated a healthy version release cadence and project activity because the last version was released less than 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
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.

Research
/Security News
Newer packages in this compromise use native extensions and .pth loaders to execute JavaScript stealers in developer environments.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.