nene / prettier-plugin-sql-cst

Prettier SQL plugin that uses sql-parser-cst

Home Page:https://nene.github.io/prettier-sql-playground/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

command usage

srqcg opened this issue · comments

It's perfect!
I wonder if we can format the sql file from the command line using a command like 'prettier-a.sql'

Just install prettier and use it from command line. This library is just a plugin for prettier. Install it and run like so:

prettier --plugin=prettier-plugin-sql-cst