mirror of
https://github.com/denoland/deno.git
synced 2025-02-23 05:33:33 -05:00

This commit adds support for formatting JSON and JSONC in "deno fmt". New values "json" and "jsonc" are added to "--ext" flag for standard input processing.
458 B
458 B
Hello Markdown
console.log("Hello World"
)
console.log("Hello World2"
)
function hello(name: string ) {
console.log(name);
};
hello( "alice");
function foo(): number {
return 2;
}
{
// Comment in JSON
"key": "value",
"key2":
"value2",
}
{
"numbers":
["1", "2"]
}