
Research
/Security News
Shai Hulud Strikes Again (v2)
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.
@triptease/sql-template
Advanced tools
This is yet another SQL tagged template for Typescript/Javascript
npm install @triptease/sql-template @triptease/sql-template-postgres
import {SQL, id} from "@triptease/sql-template";
import {statement} from "@triptease/sql-template-postgres";
client.query(statement(SQL`select * from ${id(table)} where name = ${name}`));
| function | Description |
|---|---|
SQL | The main function to create tagged templates for SQL (DB agnostic) |
text (alias raw) | Input raw SQL without any escaping (use with care) |
id / ids | Input dynamic identifiers into SQL (escaped as needed) |
value (optional) / values (alias spread) | Input one or more values into SQL (escaped as needed) |
| function | Description |
|---|---|
statement | Converts DB agnostic SQL template into postgres statement |
prepareStatement | Converts DB agnostic SQL template into postgres prepare statement |
debugQuery | Used to debug a query (use with care) |
use with care -> Used incorrectly you can open yourself up to SQL injection
It is incredibly simple to extend to other DBs, have a look at the postgres implementation.
FAQs
Unknown package
We found that @triptease/sql-template demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.