
Security News
New CNA Scorecard Tool Ranks CVE Data Quality Across the Ecosystem
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
json-schema-view-js
Advanced tools
A pure JavaScript component for rendering JSON Schema in HTML.
JSON Schema is very verbose and hard to read in JSON. This component helps rendering a JSON Schema in a user readable format.
Also available as an AngularJS directive
Installation
Install via bower
bower install json-schema-view-js --save
Then use global JSONSchemaView
constructor
const schema = {type: 'string', title: 'Name'};
const view = new JSONSchemaView(schema);
document.body.appendChild(view.render());
JSONSchemaView(schema [, open ])
schema
(Object
) - requiredThe JSON Schema object.
open
(Number
)Default: 1
This number indicates up to how many levels the rendered tree should expand. Set it to 0
to make the whole tree collapsed or set it to Infinity
to expand the tree deeply
Install gulp
and run gulp serve
to start the server that serves the development version of the project.
Once:
npm test
Continues:
gulp test
FAQs
JSON Schema View core library
The npm package json-schema-view-js receives a total of 192 weekly downloads. As such, json-schema-view-js popularity was classified as not popular.
We found that json-schema-view-js 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
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.