Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
freeman-check
Advanced tools
Simple type and format checking of JavaScript objects. This is a very popular utility at Freeman Industries.
npm install freeman-check --save
var Check = require('freeman-check')
var object = {
name: "Nabil Freeman",
favourite_films: [
"Face/Off",
"Bad Lieutenant",
"The Wicker Man"
]
}
var schema = {
type: "object",
properties: {
name: {
type: "string"
}
email: {
type: "string",
format: "email"
},
favourite_films: {
type: "array",
items: {
type: "string"
}
}
},
required: ["name", "email", "favourite_films"]
};
Check.test(some_object, schema).then(function(object){
console.log(object) //object === some_object
}).catch(function(error){
console.log(error.message) // "`email` is missing." // "`email` is malformatted." // etc...
console.log(error.schema) //error.schema === schema
})
FAQs
Easy type and format checking on JavaScript objects
The npm package freeman-check receives a total of 11 weekly downloads. As such, freeman-check popularity was classified as not popular.
We found that freeman-check 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.