Skip to content

Commit 48fdf25

Browse files
authored
Update CLI to output JSON
Use JSON.stringify to pretty-print output. This allows processing with further tools, as simply printing the JS object doesn't result in techincally valid JSON.
1 parent ec7d4b8 commit 48fdf25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if (tooManyArguments)
1313

1414
languageEncoding(path)
1515
.then((fileInfo) => {
16-
console.log(fileInfo);
16+
console.log(JSON.stringify(fileInfo, null, 4));
1717
})
1818
.catch((error) => {
1919
console.log(error);

0 commit comments

Comments
 (0)