Mods/node_modules/cardinal/examples/highlight-json.js
oitsjustjose 6b60015c02 --
2017-02-26 17:06:42 -05:00

10 lines
235 B
JavaScript

// This file will highlight the passed code using the custom theme when run via: "node highlight-json"
var cardinal = require('..');
var json = JSON.stringify({
foo: 'bar',
baz: 'quux'
});
console.log(cardinal.highlight(json));