Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@wmfs/relationize
Advanced tools
Takes a set of JSON Schema definitions and returns a relational database structure capable of storing compliant data.
Takes a set of JSON Schema definitions and returns a relational database structure capable of storing compliant data.
$ npm install relationize --save
const relationize = require('relationize')
relationize (
{
source: {
paths: [
{
namespace: 'relationizeTest',
path: '/somewhere/json-schemas/live'
}
]
}
},
function (err, dbStructure) {
// Done!
// - The value of 'dbStructure' takes the same form
// as the output generated by the 'pg-info' package.
}
)
Option | Type | Notes |
---|---|---|
source | object | A source object for configuring where to derive JSON Schema data from. |
source
objectExamples
{
paths: [
{
namespace: 'relationizeTest',
path: '/somewhere/json-schemas/live'
}
]
}
{
schemas: [
{
namespace: 'relationizeTest',
schema: {
// JSON schema here
}
}
]
}
Properties
property | Type | Notes |
---|---|---|
paths | [object] | An array of objects containing a namespace property (used to separate related tables into schemas_ and path (a file-path from where to load JSON files from - uses glob, so the ** pattern is supported) |
schemas | [object] | An array of objects containing a namespace property (used to separate related tables into schemas_ and schema (a ready-to-use JSON Schema) |
Relationize returns objects of the same form as those returned by the pg-info package. The output of Relationize can then be used to generate a relational database (complete with comments, tables, indexes and foreign key constraints) to store your JSON-structured data.
$ npm test
1.27.0 (2021-05-21)
FAQs
Takes a set of JSON Schema definitions and returns a relational database structure capable of storing compliant data.
The npm package @wmfs/relationize receives a total of 192 weekly downloads. As such, @wmfs/relationize popularity was classified as not popular.
We found that @wmfs/relationize demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.