Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aci

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aci

PostgreSQL SQL syntax beautifier.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by800%
Maintainers
1
Weekly downloads
 
Created
Source

pg-formatter

Travis build status Coveralls NPM version Canonical Code Style Twitter Follow

A PostgreSQL SQL syntax beautifier.

Note:

This project is a thin wrapper of https://github.com/darold/pgFormatter. Execution of the module relies on Perl being available on the host system.

Usage

import {
  format
} from 'pg-formatter';

format(`SELECT foo FROM bar`);

Configuration

ConfigurationDefaultDescriptionpgFormatter equivalent
anonymizefalseObscure all literals in queries, useful to hide confidential data before formatting.anonymize
functionCaseunchangedChange the case of the function names. Values: "unchanged", "lowercase", "uppercase", "capitalize"function-case
keywordCaseunchangedChange the case of the reserved keyword. Values: "unchanged", "lowercase", "uppercase", "capitalize"keyword-case
spaces4Number of spaces to indent the code.spaces
stripCommentsfalseRemove any comment from SQL code.nocomment

Keywords

FAQs

Package last updated on 05 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc