
Security News
Rust RFC Proposes a Security Tab on crates.io for RustSec Advisories
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.
@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 4 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
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.

Security News
/Research
Socket found a Rust typosquat (finch-rust) that loads sha-rust to steal credentials, using impersonation and an unpinned dependency to auto-deliver updates.

Research
/Security Fundamentals
A pair of typosquatted Go packages posing as Google’s UUID library quietly turn helper functions into encrypted exfiltration channels to a paste site, putting developer and CI data at risk.