UNPKG
heroku-debug
Version:
alpha (4.0.0)
beta (6.2.4-beta)
cowabunga (5.0.3)
latest (5.0.5)
next (6.2.5-3)
6.2.5-3
6.2.5-2
6.2.5-1
6.2.5-0
6.2.4-beta
6.2.3-beta
6.2.2-beta
6.2.1-beta
6.2.0-beta
6.1.3-beta
6.1.2-beta
6.1.1-beta
6.1.0-beta
6.0.4-beta
6.0.3-beta
6.0.2-beta
6.0.1-beta
6.0.0-beta
5.0.5
5.0.4
5.0.3
5.0.2
5.0.1
5.0.0
4.0.0
3.0.0
2.0.0
1.2.3
1.2.2
1.2.1
1.2.0
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.0
debugging plugin for the CLI
github.com/heroku/heroku-cli-debug
heroku/heroku-cli-debug
heroku-debug
/
tmp
/
node_modules
/
cardinal
/
examples
/
highlight-json.js
11 lines
(7 loc)
•
249 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
// 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
}));