Files
portfolio2023/build/node_modules/cardinal/examples/highlight-json.js
T
2023-11-24 22:35:41 +01:00

12 lines
245 B
JavaScript

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