Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
@curvewise/pg-formatter
Advanced tools
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.
import {
format
} from 'pg-formatter';
format(`SELECT foo FROM bar`);
Configuration | Format | Default | Description | pgFormatter equivalent |
---|---|---|---|---|
anonymize | boolean | false | Obscure all literals in queries, useful to hide confidential data before formatting. | anonymize |
functionCase | string ("unchanged", "lowercase", "uppercase", "capitalize") | unchanged | Change the case of the function names. | function-case |
keywordCase | string ("unchanged", "lowercase", "uppercase", "capitalize") | unchanged | Change the case of the reserved keyword. | keyword-case |
noRcFile | boolean | false | Do not read ~/.pg_format automatically. | no-rcfile |
placeholder | string (regex) | N/A | Regex to find code that must not be changed. | placeholder |
spaces | number | 4 | Number of spaces to indent the code. | spaces |
stripComments | boolean | false | Remove any comment from SQL code. | nocomment |
tabs | boolean | false | Use tabs instead of spaces. When true , the spaces option is ignored. | tabs |
FAQs
PostgreSQL SQL syntax beautifier.
The npm package @curvewise/pg-formatter receives a total of 4 weekly downloads. As such, @curvewise/pg-formatter popularity was classified as not popular.
We found that @curvewise/pg-formatter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.