UNPKG

@scaleleap/pg-format

Version:

A fully typed TypeScript and Node.js implementation of PostgreSQL format() to safely create dynamic SQL queries. SQL identifiers and literals are escaped to help prevent SQL injection.

62 lines (61 loc) 1.65 kB
{ "name": "@scaleleap/pg-format", "version": "1.0.0", "description": "A fully typed TypeScript and Node.js implementation of PostgreSQL format() to safely create dynamic SQL queries. SQL identifiers and literals are escaped to help prevent SQL injection.", "license": "MIT", "author": { "name": "Roman Filippov", "email": "roman@scaleleap.com", "url": "https://www.scaleleap.com/" }, "homepage": "https://github.com/ScaleLeap/pg-format", "repository": { "type": "git", "url": "git@github.com:ScaleLeap/pg-format.git" }, "bugs": { "url": "https://github.com/ScaleLeap/pg-format/issues" }, "main": "lib/index.js", "files": [ "/lib" ], "scripts": { "prebuild": "npm run clean", "build": "tsc --build tsconfig.build.json", "clean": "rimraf lib/*", "dev": "ts-node-dev --respawn --transpileOnly src", "lint": "eslint --ext ts,js src/ test/", "lint:fix": "npm run lint -- --fix", "semantic-release": "npx @scaleleap/semantic-release-config", "start": "ts-node --transpile-only --pretty src", "test": "jest", "test:watch": "jest --watchAll" }, "types": "lib/index.d.ts", "devDependencies": { "@scaleleap/utils": "1.9.34", "@types/jest": "26.0.23", "@types/node": "13.13.51", "danger": "10.6.4", "jest": "26.6.3", "rimraf": "3.0.2", "ts-jest": "26.5.5", "tsconfigs": "4.0.2", "typescript": "4.2.4" }, "keywords": [ "escape", "format", "pg", "pg-escape", "pg-format", "postgres", "postgresql", "query", "sql injection" ], "publishConfig": { "access": "public" } }