{"_id":"@clickhouse/client@1.25.0","bugs":{"url":"https://github.com/ClickHouse/clickhouse-js/issues"},"dist":{"shasum":"a59978d02bbf58ff95a00b1c6bb8ae21ba25a850","tarball":"http://registry-npm.ywwl.com/@clickhouse/client/download/@clickhouse/client-1.25.0.tgz","fileCount":237,"integrity":"sha512-sxoCDlA8iOEGpGrJzl9SeNvG7II6e5kSeo0JI4Mru2QhwhjydWuDEE55ryZg3vIJ0CSJ1bhn9+Xtnuvf1BZT/w==","signatures":[{"sig":"MEUCIC8NI9jD8NU+vZhOYxyQ1Zgmt05CztQfvRsxhK9FBwS+AiEApJU2Sl8XqogZwz5yiZcR9BBzkMZVljcvWKco+3rjKss=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIA+zfbXfBDrIUAVZiiZbj/jzDtb/RLL9CL4XA0p2YxtEAiEAwymUJbiat22M/YmmigrMcnBODpz0cfZq7gUAOzNmebA="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@clickhouse%2fclient@1.25.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1102622,"size":299882,"noattachment":false,"key":"/@clickhouse/client/-/@clickhouse/client-1.25.0.tgz"},"main":"dist/index.js","name":"@clickhouse/client","types":"dist/index.d.ts","agents":{"skills":[{"name":"clickhouse-js-node-coding","path":"./skills/clickhouse-js-node-coding"},{"name":"clickhouse-js-node-troubleshooting","path":"./skills/clickhouse-js-node-troubleshooting"},{"name":"clickhouse-js-node-rowbinary","path":"./skills/clickhouse-js-node-rowbinary"}]},"engines":{"node":">=20"},"gitHead":"bfd729c55a81223900018bf6839a373128867ff7","license":"Apache-2.0","private":false,"scripts":{"lint":"eslint --max-warnings=0 .","pack":"npm pack","build":"rm -rf dist; tsc","prepack":"rm -rf skills && cp ../../LICENSE . && cp -r ../../skills . && RBP=skills/clickhouse-js-node-rowbinary && rm -rf $RBP/tests $RBP/node_modules $RBP/dist $RBP/package.json $RBP/package-lock.json $RBP/tsconfig.json $RBP/tsconfig.build.json $RBP/vitest.config.ts $RBP/.gitignore $RBP/LICENSE $RBP/eval_result*.md","lint:fix":"eslint . --fix","test:all":"TEST_MODE=all vitest","test:unit":"CLICKHOUSE_TEST_SKIP_INIT=1 TEST_MODE=unit vitest","typecheck":"tsc --noEmit","test:coverage":"VITEST_COVERAGE=true TEST_MODE=all vitest","test:unit:bun":"CLICKHOUSE_TEST_SKIP_INIT=1 TEST_MODE=unit bun --bun vitest","test:integration":"TEST_MODE=integration vitest","test:oss-dependents":"TEST_MODE=oss-dependents vitest","test:integration:tls":"TEST_MODE=tls vitest","test:integration:dist":"npm --prefix ../.. run build && TEST_TARGET=dist TEST_MODE=integration vitest","test:integration:cloud":"CLICKHOUSE_TEST_ENVIRONMENT=cloud TEST_MODE=integration vitest","test:integration:local_cluster":"CLICKHOUSE_TEST_ENVIRONMENT=local_cluster TEST_MODE=integration vitest"},"version":"1.25.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"202a14bc-0ae8-4ee5-b09e-b1518e89c6d3"}},"homepage":"https://clickhouse.com","keywords":["clickhouse","sql","client"],"repository":{"url":"git+https://github.com/ClickHouse/clickhouse-js.git","type":"git"},"_npmVersion":"11.19.1","description":"Official JS client for ClickHouse DB - Node.js implementation","directories":{},"maintainers":[{"name":"mikhail.shustov-clickhouse","email":"mikhail.shustov@clickhouse.com"},{"name":"michael.anastasakis","email":"michael.anastasakis@clickhouse.com"},{"name":"4b819b88c84b","email":"peter.leonov@clickhouse.com"},{"name":"santrancisco","email":"san.tran@clickhouse.com"},{"name":"hoorayimhelping","email":"d.w.schwarz@gmail.com"},{"name":"tresleches","email":"julio@clickhouse.com"},{"name":"vineethasok","email":"vineeth.asokkumar@clickhouse.com"}],"_nodeVersion":"24.22.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"simdjson":"^0.9.2"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/client_1.25.0_1793799128111_0.8749812069271862"},"readme":"# @clickhouse/client\n\nOfficial Node.js client for [ClickHouse](https://clickhouse.com/), written\npurely in TypeScript and thoroughly tested against actual ClickHouse versions.\n\nIt is built on top of the Node.js [HTTP](https://nodejs.org/api/http.html) and\n[Stream](https://nodejs.org/api/stream.html) APIs and supports streaming for\nboth selects and inserts. The client has zero external dependencies and is\noptimized for maximum performance.\n\n> Looking for a browser / edge runtime (Cloudflare Workers, etc.) instead? Use\n> [`@clickhouse/client-web`](https://www.npmjs.com/package/@clickhouse/client-web).\n\n## Installation\n\n```sh\nnpm i @clickhouse/client\n```\n\n## Environment requirements\n\nNode.js must be available in the environment to run the client. The client is\ncompatible with all the [maintained](https://github.com/nodejs/release#readme)\nNode.js releases.\n\n| Node.js version | Supported? |\n| --------------- | ---------- |\n| 26.x            | ✔          |\n| 24.x            | ✔          |\n| 22.x            | ✔          |\n| 20.x            | ✔          |\n\nIf using TypeScript, version\n[4.5](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-5.html)\nor above is required to enable\n[inline import and export syntax](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-5.html#type-modifiers-on-import-names).\n\n## Compatibility with ClickHouse\n\n| Client version | ClickHouse |\n| -------------- | ---------- |\n| 1.12.0+        | 24.8+      |\n\nThe client may work with older versions too; however, this is best-effort\nsupport and is not guaranteed.\n\n## Quick start\n\n```ts\nimport { createClient } from \"@clickhouse/client\";\n\nconst client = createClient({\n  url: process.env.CLICKHOUSE_URL ?? \"http://localhost:8123\",\n  username: process.env.CLICKHOUSE_USER ?? \"default\",\n  password: process.env.CLICKHOUSE_PASSWORD ?? \"\",\n});\n\nconst resultSet = await client.query({\n  query: \"SELECT * FROM system.tables\",\n  format: \"JSONEachRow\",\n});\n\nconst tables = await resultSet.json();\nconsole.log(tables);\n\nawait client.close();\n```\n\nSee more examples in the\n[examples directory](https://github.com/ClickHouse/clickhouse-js/tree/main/examples).\n\n## Documentation\n\nSee the [ClickHouse website](https://clickhouse.com/docs/integrations/javascript)\nfor the full documentation.\n\n## Changelog\n\nSee [`CHANGELOG.md`](https://github.com/ClickHouse/clickhouse-js/blob/main/packages/client-node/CHANGELOG.md).\n\n## Contact us\n\nIf you have any questions or need help, feel free to reach out to us in the\n[Community Slack](https://clickhouse.com/slack) (`#clickhouse-js` channel) or\nvia [GitHub issues](https://github.com/ClickHouse/clickhouse-js/issues).\n\n## License\n\n[Apache 2.0](https://github.com/ClickHouse/clickhouse-js/blob/main/LICENSE)\n","publish_time":1793799128250,"_cnpm_publish_time":1793799128250,"dist-tags":{"faster_exception_detection":"0.100.1","head":"1.25.0-head.bfd729c.1","latest":"1.25.0"}}