package.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {
  2. "name": "mysql2",
  3. "version": "3.11.4",
  4. "description": "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS",
  5. "main": "index.js",
  6. "typings": "typings/mysql/index",
  7. "scripts": {
  8. "lint": "npm run lint:docs && npm run lint:code",
  9. "lint:code": "eslint index.js promise.js index.d.ts promise.d.ts \"typings/**/*.ts\" \"lib/**/*.js\" \"test/**/*.{js,cjs,mjs,ts}\" \"benchmarks/**/*.js\"",
  10. "lint:docs": "eslint Contributing.md README.md",
  11. "lint:typings": "npx prettier --check ./typings",
  12. "lint:tests": "npx prettier --check ./test",
  13. "test": "poku --debug --include=\"test/esm,test/unit,test/integration\"",
  14. "test:bun": "poku --debug --platform=\"bun\" --include=\"test/esm,test/unit,test/integration\"",
  15. "test:deno": "deno run --allow-read --allow-env --allow-run npm:poku --debug --platform=\"deno\" --deno-allow=\"read,env,net,sys\" --deno-cjs=\".js,.cjs\" --include=\"test/esm,test/unit,test/integration\"",
  16. "test:tsc-build": "cd \"test/tsc-build\" && npx tsc -p \"tsconfig.json\"",
  17. "coverage-test": "c8 npm run test",
  18. "benchmark": "node ./benchmarks/benchmark.js",
  19. "prettier": "prettier --single-quote --trailing-comma none --write \"{lib,test}/**/*.js\"",
  20. "prettier:docs": "prettier --single-quote --trailing-comma none --write README.md",
  21. "precommit": "lint-staged",
  22. "eslint-check": "eslint --print-config .eslintrc | eslint-config-prettier-check",
  23. "wait-port": "wait-on"
  24. },
  25. "lint-staged": {
  26. "*.js": [
  27. "prettier --single-quote --trailing-comma none --write",
  28. "git add"
  29. ]
  30. },
  31. "repository": {
  32. "type": "git",
  33. "url": "https://github.com/sidorares/node-mysql2"
  34. },
  35. "homepage": "https://sidorares.github.io/node-mysql2/docs",
  36. "keywords": [
  37. "mysql",
  38. "client",
  39. "server"
  40. ],
  41. "files": [
  42. "lib",
  43. "typings/mysql",
  44. "index.js",
  45. "index.d.ts",
  46. "promise.js",
  47. "promise.d.ts"
  48. ],
  49. "exports": {
  50. ".": "./index.js",
  51. "./package.json": "./package.json",
  52. "./promise": "./promise.js",
  53. "./promise.js": "./promise.js"
  54. },
  55. "engines": {
  56. "node": ">= 8.0"
  57. },
  58. "author": "Andrey Sidorov <andrey.sidorov@gmail.com>",
  59. "license": "MIT",
  60. "dependencies": {
  61. "aws-ssl-profiles": "^1.1.1",
  62. "denque": "^2.1.0",
  63. "generate-function": "^2.3.1",
  64. "iconv-lite": "^0.6.3",
  65. "long": "^5.2.1",
  66. "lru.min": "^1.0.0",
  67. "named-placeholders": "^1.1.3",
  68. "seq-queue": "^0.0.5",
  69. "sqlstring": "^2.3.2"
  70. },
  71. "devDependencies": {
  72. "@types/node": "^22.0.0",
  73. "@typescript-eslint/eslint-plugin": "^5.42.1",
  74. "@typescript-eslint/parser": "^5.42.1",
  75. "assert-diff": "^3.0.2",
  76. "benchmark": "^2.1.4",
  77. "c8": "^10.1.1",
  78. "error-stack-parser": "^2.0.3",
  79. "eslint": "^8.27.0",
  80. "eslint-config-prettier": "^9.0.0",
  81. "eslint-plugin-async-await": "0.0.0",
  82. "eslint-plugin-markdown": "^5.0.0",
  83. "lint-staged": "^15.0.1",
  84. "poku": "^2.0.0",
  85. "portfinder": "^1.0.28",
  86. "prettier": "^3.0.0",
  87. "progress": "^2.0.3",
  88. "typescript": "^5.0.2"
  89. }
  90. }