Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

A modern runtime for JavaScript and TypeScript.
Go to Latest
function check
import { check } from "https://deno.land/x/deno@v0.23.0/std/prettier/vendor/index.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