These are the only plugins available at this time:

Using Plugins in Deno

Plugins may be used to format text in Deno like so:

import { createStreaming } from "";

const globalConfig = {
    indentWidth: 2,
    lineWidth: 80,
const tsFormatter = await createStreaming(

tsFormatter.setConfig(globalConfig, {
    semiColons: "asi",

// outputs: "const t = 5\n"
console.log(tsFormatter.formatText("file.ts", "const   t    = 5;"));


  • Documentation
  • Make sure to check the license of a plugin when you use it to see if use is permitted this way. You may read a plugin's license text by running #getLicenseText() on the returned formatter object. For example, tsFormatter.getLicenseText() in this case returns the MIT license.