
Security News
pnpm 11.5 Adds Support for Recognizing npm Staged Publishes
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.
@rain-cafe/validify
Advanced tools
NOTE: Still a WIP and may be breaking changes within the first major version
An incredibly simple object validation library
import { Validator, isDefined, isAlpha } from '@rain-cafe/validify';
type MyCustomType = {
name: string;
version: string;
i18n: {
en: {
hello: string;
};
};
users: Array<{
first: string;
last: string;
}>;
};
const validator = new Validator<MyCustomType>({
name: [isDefined, isAlpha],
i18n: {
en: {
hello: [isDefined, isAlphaNumeric],
},
},
users: {
first: [isDefined, isAlpha],
last: [isDefined, isAlpha],
},
});
const myObject = {
name: 'App',
version: '1.0.0',
i18n: {
en: {
hello: 'world',
},
},
users: [
{
first: 'Cecilia',
last: 'Sanare',
},
],
};
const errors = validator.check(myObject); // returns a list of all the validator failure reasons
validator.validate(myObject); // throws an error containing all of the validator failure reasons
validator.isValid(myObject); // returns true if the object passes all of the validators
validator.isInvalid(myObject); // returns true if the object fails any of the validators
FAQs
An incredibly simple object validation library
The npm package @rain-cafe/validify receives a total of 3 weekly downloads. As such, @rain-cafe/validify popularity was classified as not popular.
We found that @rain-cafe/validify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.