Skip to content

Instantly share code, notes, and snippets.

View chandanbn's full-sized avatar

Chandan chandanbn

View GitHub Profile
@chandanbn
chandanbn / schema2markmap.js
Last active August 18, 2021 21:45
CVE JSON schema to markdown
// (c) Chandan BN, 2021 convert CVE JSON schema to a markdown document that can be used at https://markmap.js.org/repl/
var sw = require('@cloudflare/json-schema-walker');
var rp = require('json-schema-ref-parser');
var fold = ['metrics', 'cvssV3_1', 'cvssV3_0', 'cvssV2_0', 'supportingMedia', 'tags', 'impacts', 'configurations', 'workarounds', 'solutions', 'exploits', 'timeline', 'credits', 'tags', 'taxonomyMappings'];
var symbol = {object: '', array: '[]', string: '', boolean: '☯', number: '', integer: '', undefined: ''};
let forDeletion = ['properties', 'items'];
function postfunc(obj,path,parent,parentPath) {

Keybase proof

I hereby claim:

  • I am chandanbn on github.
  • I am chandanbn (https://keybase.io/chandanbn) on keybase.
  • I have a public key ASDr7n9-1_URo5Rogqgy7vwJGDy1PrGNWmXN_HG5vdb8RQo

To claim this, I am signing this object: