
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
sql-summary
Advanced tools
Summarize any SQL query.
This JavaScript module will analyse an SQL query and return a very brief summary string containing:
SELECT
, INSERT
, UPDATE
etc.)TABLE
, DATABASE
etc.)For example, if given the following SQL query:
SELECT col1, col2 FROM table_name WHERE id=1
The following summary string is produced:
SELECT FROM table_name
npm install sql-summary
var sqlSummary = require('sql-summary')
var query = 'UPDATE table_name SET col1=1, col2=2 WHERE id=1'
console.log('Running query:', sqlSummary(query)) // => 'Running query: UPDATE table_name'
db.query(query, function (err, result) {
// ...
})
FAQs
Summarize any SQL query
The npm package sql-summary receives a total of 282,706 weekly downloads. As such, sql-summary popularity was classified as popular.
We found that sql-summary 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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.