{"name":"named-placeholders","version":"1.1.4","keywords":["sql","pdo","named","placeholders"],"author":{"name":"Andrey Sidorov","email":"sidorares@yandex.com"},"license":"MIT","_id":"named-placeholders@1.1.4","maintainers":[{"name":"sidorares","email":"andrey.sidorov@gmail.com"}],"homepage":"https://github.com/sidorares/named-placeholders#readme","bugs":{"url":"https://github.com/sidorares/named-placeholders/issues"},"dist":{"shasum":"92882114525181077e21aab96889f25e857e233a","tarball":"http://registry-npm.ywwl.com/named-placeholders/download/named-placeholders-1.1.4.tgz","fileCount":4,"integrity":"sha512-/qfG0Kk/bLJIvej4FcPQ2KYUJP8iQdU1CTxysNb/U2wUNb+/4K485yeio8iNoiwfqJnsTInXoRPTza0dZWHVJQ==","signatures":[{"sig":"MEUCIHGc4ouo+DQtc1pThuTy/Zidkd1YTo/athOzAvTqWf/zAiEA9LAP/by1TcDIB9MfLEEPHzG6eAzjkS0cqGJI6mHZcqo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6836,"size":2920,"noattachment":false,"key":"/named-placeholders/-/named-placeholders-1.1.4.tgz"},"main":"index.js","engines":{"node":">=8.0.0"},"gitHead":"60a937c4c638db8e79c6f3de8cef6bb397af5ba7","scripts":{"test":"node --test"},"_npmUser":{"name":"sidorares","email":"andrey.sidorov@gmail.com"},"repository":{"url":"git+https://github.com/sidorares/named-placeholders.git","type":"git"},"_npmVersion":"11.6.2","description":"sql named placeholders to unnamed compiler","directories":{},"_nodeVersion":"24.11.1","dependencies":{"lru.min":"^1.1.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/named-placeholders_1.1.4_1765152413118_0.9209317718750987","host":"s3://npm-registry-packages-npm-production"},"readme":"[![NPM](https://nodei.co/npm/named-placeholders.png?downloads=true&stars=true)](https://nodei.co/npm/named-placeholders/)\n\n[![CI](https://github.com/mysqljs/named-placeholders/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/mysqljs/named-placeholders/actions/workflows/ci.yml)\n\n# named-placeholders\n\ncompiles \"select foo where foo.id = :bar and foo.baz < :baz\" into \"select foo where foo.id = ? and foo.baz < ?\" + [\"bar\", \"baz\"]\n\n## usage\n\n```sh\nnpm install named-placeholders\n```\n\nsee [this mysql2 discussion](https://github.com/sidorares/node-mysql2/issues/117)\n\n```js\nvar mysql = require('mysql');\nvar toUnnamed = require('named-placeholders')();\n\nvar q = toUnnamed('select 1+:test', { test: 123 });\nmysql.createConnection().query(q[0], q[1]);\n```\n\n## credits\n\nparser is based on @mscdex code of his excellent [node-mariasql](https://github.com/mscdex/node-mariasql) library\n","publish_time":1765152413257,"_cnpm_publish_time":1765152413257,"dist-tags":{"latest":"1.1.6"}}