This repository has been archived on 2018-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
node-task/node_modules/mysql2/node_modules/cardinal/examples/highlight-json.js

11 lines
249 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, {json: true}));