Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

nene/sql-auto-format

Repository files navigation

SQL auto-format experiment build status

Pretty-prints SQL code.

Status: This experimental formatter has been discontinued. See its successor prettier-plugin-sql-cst instead.

Usage

The format() function takes an SQL string and config options:

import { format } from "sql-auto-format";

console.log(format("SELECT * FROM person", { dialect: "sqlite" }));

and returns it in nicely formatted way:

SELECT
  *
FROM
  person

About

Pretty-prints SQL code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published