{"library":"pg-format-fix","type":"library","category":null,"description":"Node.js implementation of PostgreSQL's format() to safely create dynamic SQL queries. This version 1.0.5 is a minor fix to the archived original pg-format (last version 1.0.4) which contained a bug when the global absolute path is rewritten. It supports escaped SQL identifiers (%I), literals (%L), and simple strings (%s), as well as argument positioning, buffers, arrays, and objects. Useful for building SQL queries safely against SQL injection. Note: the original pg-format is archived and this fork fixes a specific path rewriting bug. Release cadence is low (last update 2022). Differentiator: lightweight, no dependencies, mimics PostgreSQL's format function exactly.","language":"javascript","status":"maintenance","version":"1.0.5","tags":["javascript"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install pg-format-fix","imports":["import format from 'pg-format'","const format = require('pg-format')","import format from 'pg-format'; format.ident('col'); format.literal('val'); format.string('str'); format.withArray('fmt', []); format.config({});"]},{"cmd":"yarn add pg-format-fix","imports":[]},{"cmd":"pnpm add pg-format-fix","imports":[]}],"homepage":"https://github.com/JCloudYu/node-pg-format-fix","github":"https://github.com/JCloudYu/node-pg-format-fix","docs":null,"changelog":null,"pypi":null,"npm":"pg-format-fix","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}