Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/std/prettier/vendor/index.d.ts>format

A modern runtime for JavaScript and TypeScript.
Go to Latest
function format
import { format } from "https://deno.land/x/deno@v0.22.0/std/prettier/vendor/index.d.ts";

format is used to format text using Prettier. Options may be provided to override the defaults.

Parameters

source: string
optional
options: Options

Returns

string