pg-sanitize
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

PG Sanitize

We used this libary for prevention our production SQL statement. Just need to purify SQL Query befor send it to execution method.

How to used

 import { sanitizeSQL } from 'pg-sanitize'
 let SQL = 'SELECT * from username; DROP TABLE username'
 SQL = sanitizeSQL(SQL);
 
 // This helper is not remove DROP TABLE but Query will be exception beacuse syntax is not correct.

Readme

Keywords

none

Package Sidebar

Install

npm i pg-sanitize

Weekly Downloads

76

Version

1.0.10

License

ISC

Unpacked Size

12.2 kB

Total Files

14

Last publish

Collaborators

  • tonmanna