highlight-json.js 235 B

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