sql-prettier

0.2.12 • Public • Published

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

Package Sidebar

Install

npm i sql-prettier

Weekly Downloads

329

Version

0.2.12

License

MIT

Unpacked Size

369 kB

Total Files

27

Last publish

Collaborators

  • fengliner
  • zhangmuren
  • zacheryriginal
  • x4518cs0122