Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
praetorian
Advanced tools
Praetorian is a structured JSON validator. It take both a JSON data set and a structure and tells you if anything, whats wrong with it.
0.0.2 (in development)
$ npm install praetorian
Example:
{
"shield": {
"required": true
"validation": {
}
},
"weapon": {
"required": true
"type": "array",
"items": {
"sword": {
"validation": {
}
},
"dagger": {
"required": true
}
}
},
"helmet": {
"type": "object",
"properties": {
"noseGuard": {
"required": true
},
"chinStrap": {
}
}
}
}
Notes:
var Praetorian = require( '../index' );
praetorian = new Praetorian();
// pass your data and structure in like this
praetorian.validate( data, structure, function( err, data ) {
if( err ) {
console.log( 'check err', err );
// requirements will tell you for the passed structure
// how to fulfill the validation
praetorian.requirements( structure, function( err, data ) {
if( err ) {
// console.log( 'requirements err', err );
} else {
// console.log( 'requirements success', data );
}
} );
} else {
console.log( 'check success', data );
}
} );
To run the test harness do the following:
cd praetorian
node test/sanity.js
FAQs
A structured JSON parser and validator
The npm package praetorian receives a total of 1 weekly downloads. As such, praetorian popularity was classified as not popular.
We found that praetorian 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.