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

x/deno/std/prettier/vendor/standalone.d.ts>check

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

check checks to see if the file has been formatted with Prettier given those options and returns a Boolean. This is similar to the --list-different parameter in the CLI and is useful for running Prettier in CI scenarios.

Parameters

source: string
optional
options: Options

Returns

boolean