
Security News
/Research
Fake Corepack Site Distributes Infostealer and Proxyware to Developers
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.
@kenyip/joi
Advanced tools
Forked from joi (version 14.3.1). Adding some convenient functions like removeKey, toSwagger ... etc
// Using NPM
$ npm i @kenyip/joi --save
// Using Yarn
$ yarn add @kenyip/joi
A list of plugins added into Joi framework
Convert the Joi schema objects into Swagger OAS 3.0 schema definitions. The library is cloned from joi-to-swagger with a little bit modification. Click here for the usage and the support conventions.
const object = Joi.object({
hello: Joi.string(),
world: Joi.string()
});
console.log(JSON.stringify(objectA.toSwagger(), null, 4));
// {
// "type": "object",
// "properties": {
// "hello": {
// "type": "string"
// },
// "world": {
// "type": "string"
// }
// }
// }
Remove keys from the existing schema
const objectA = Joi.object({
hello: Joi.string(),
world: Joi.string(),
});
const objectB = objectA
.keys({ foo: Joi.string() })
.remove(["hello"]);
console.log(JSON.stringify(objectB.toSwagger(), null, 4));
// {
// "type": "object",
// "properties": {
// "world": {
// "type": "string"
// },
// "foo": {
// "type": "string"
// }
// }
// }
FAQs
Object schema validation
The npm package @kenyip/joi receives a total of 5 weekly downloads. As such, @kenyip/joi popularity was classified as not popular.
We found that @kenyip/joi demonstrated a not healthy version release cadence and project activity because the last version was released 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
/Research
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.

Research
/Security News
A large-scale campaign abused GitHub Actions in compromised repositories to exploit CVE-2026-41940 in cPanel and WHM and steal server credentials.

Security News
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.