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
99.8
Supply Chain
93.8
Quality
78
Maintenance
100
Vulnerability
100
License
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.02%)
JavaScript (4%)
SCSS (2.66%)
Shell (0.22%)
PLpgSQL (0.09%)
TSQL (0.02%)
Total Downloads
256,182,425
Last Day
378,732
Last Week
2,147,880
Last Month
9,182,226
Last Year
96,573,697
MIT License
1,615 Stars
1,865 Commits
326 Forks
34 Watchers
5 Branches
77 Contributors
Updated on May 09, 2025
Minified
Minified + Gzipped
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
51%
378,732
Compared to previous day
Last Week
6.5%
2,147,880
Compared to previous week
Last Month
-4.1%
9,182,226
Compared to previous month
Last Year
42%
96,573,697
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
15 commit(s) and 6 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 13/17 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
54 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-04-28
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