Gathering detailed insights and metrics for @sqltools/formatter
Gathering detailed insights and metrics for @sqltools/formatter
Gathering detailed insights and metrics for @sqltools/formatter
Gathering detailed insights and metrics for @sqltools/formatter
npm install @sqltools/formatter
Typescript
Module System
Node Version
NPM Version
mssql-v0.4.6
Updated on Apr 12, 2025
v0.28.4 - (Feb 17, 2025)
Updated on Feb 17, 2025
MySQL driver v0.6.3 - (May 31, 2024)
Updated on May 31, 2024
v0.28.3 - (Apr 16, 2024)
Updated on Apr 16, 2024
v0.28.2 - (Apr 12, 2024)
Updated on Apr 12, 2024
v0.28.1 - (Nov 13, 2023)
Updated on Nov 13, 2023
TypeScript (93.06%)
JavaScript (3.97%)
SCSS (2.64%)
Shell (0.21%)
PLpgSQL (0.09%)
TSQL (0.02%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1,636 Stars
1,868 Commits
341 Forks
33 Watchers
5 Branches
77 Contributors
Updated on Jul 12, 2025
Latest Version
1.2.5
Package Id
@sqltools/formatter@1.2.5
Unpacked Size
73.19 kB
Size
16.17 kB
File Count
31
NPM Version
6.14.6
Node Version
16.15.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
7
Forked from zeroturnaround/sql-formatter but with improvements and ported Typescript.
This package is part of vscode-sqltools extension.
→ Try it online using our playground.
Get the latest version from NPM/Yarn:
1npm install @sqltools/formatter 2# 3yarn add @sqltools/formatter
1import sqlFormatter from '@sqltools/formatter'; 2 3console.log(sqlFormatter.format('SELECT * FROM table1'));
Will output:
SELECT *
FROM table1
You can also pass in configuration options:
1sqlFormatter.format('SELECT *', { 2 language: 'sql', 3 indent: '\t', // Defaults to two spaces 4});
option | description | type | default |
---|---|---|---|
language | Query language, default is Standard SQL | sql, n1ql, db2, pl/sql | sql |
indent | Characters used for indentation | string | (2 spaces) |
reservedWordCase | How to change the case of reserved words | upper , lower , null | null (no change) |
linesBetweenQueries | How many line breaks between queries | number or 'preserve' | 1 |
params | Collection of params for placeholder replacement | object for name params, array for indexed placeholders |
No vulnerabilities found.
Reason
6 commit(s) and 12 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 14/18 approved changesets -- score normalized to 7
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
Project has not signed or included provenance with any releases.
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
56 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More