package.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. {
  2. "name": "sql-escaper",
  3. "version": "1.3.3",
  4. "description": "🛡️ Faster SQL escape and format for JavaScript (Node.js, Bun, and Deno).",
  5. "main": "./lib/index.js",
  6. "module": "./lib/index.mjs",
  7. "types": "./lib/index.d.ts",
  8. "license": "MIT",
  9. "repository": {
  10. "type": "git",
  11. "url": "git+https://github.com/mysqljs/sql-escaper.git"
  12. },
  13. "bugs": {
  14. "url": "https://github.com/mysqljs/sql-escaper/issues"
  15. },
  16. "author": "https://github.com/mysqljs",
  17. "funding": {
  18. "type": "github",
  19. "url": "https://github.com/mysqljs/sql-escaper?sponsor=1"
  20. },
  21. "files": [
  22. "lib"
  23. ],
  24. "engines": {
  25. "node": ">=12.0.0",
  26. "bun": ">=1.0.0",
  27. "deno": ">=2.0.0"
  28. },
  29. "scripts": {
  30. "benchmark": "cd benchmark && npm ci && bash index.sh",
  31. "build:esm": "esbuild src/index.ts --outfile=lib/index.mjs --platform=node --target=node12 --format=esm",
  32. "build": "rm -rf ./lib && tsc && npm run build:esm",
  33. "test:node": "poku",
  34. "test:bun": "bun poku",
  35. "test:deno": "deno run -A npm:poku",
  36. "test:coverage": "mcr --import tsx --config mcr.config.ts npm run test:node",
  37. "lint": "biome lint && prettier --check .",
  38. "lint:fix": "biome lint --write && prettier --write .github/workflows/*.yml .",
  39. "update": "pu minor && npm i && (npm audit fix || true) && npm run lint:fix"
  40. },
  41. "devDependencies": {
  42. "@biomejs/biome": "^1.9.4",
  43. "@ianvs/prettier-plugin-sort-imports": "^4.7.0",
  44. "@types/node": "^25.2.0",
  45. "esbuild": "^0.27.2",
  46. "monocart-coverage-reports": "^2.12.9",
  47. "packages-update": "^2.0.0",
  48. "poku": "^3.0.3-canary.13a996a9",
  49. "prettier": "^3.8.1",
  50. "tsx": "^4.21.0",
  51. "typescript": "^5.9.3"
  52. },
  53. "exports": {
  54. ".": {
  55. "import": {
  56. "types": "./lib/index.d.ts",
  57. "default": "./lib/index.mjs"
  58. },
  59. "require": {
  60. "types": "./lib/index.d.ts",
  61. "default": "./lib/index.js"
  62. }
  63. }
  64. },
  65. "keywords": [
  66. "sql",
  67. "escape",
  68. "format",
  69. "sqlstring",
  70. "sql-injection",
  71. "sanitize",
  72. "query",
  73. "mysql",
  74. "node",
  75. "nodejs",
  76. "bun",
  77. "deno",
  78. "typescript",
  79. "fast"
  80. ]
  81. }