leigna
Anyway to use deno fmt within a script itself without having to call deno again?
I am working on a code generator and I'd like to run a string through deno fmt before I save to file.
I've seen how to do it by calling deno to format the file, but wondering if I could do this within the script itself?
See this function here:
I'd like this string passed through deno fmt before saving, within the deno Script itself.
I then process that string content like this:
I dont want to allow Deno.Command, so was wondering if another way.
Thank you.
9 replies