sql-prettier
v0.2.12
Published
Formats whitespaces in a SQL query to make it more readable
Downloads
1,596
Readme
SQL Prettier fork from Sql Formatter
Install
Get the latest version from NPM:
npm install sql-prettier
Usage
import sqlPrettier from 'sql-prettier';
console.log(sqlPrettier.format('SELECT supplier_name, city FROM suppliers WHERE supplier_id > 500'));
This will output:
SELECT supplier_name,
city
FROM suppliers
WHERE supplier_id > 500