{"name":"@clickhouse/client","version":"1.14.0","keywords":["clickhouse","sql","client"],"license":"Apache-2.0","_id":"@clickhouse/client@1.14.0","maintainers":[{"name":"serdec","email":"sdecri@gmail.com"},{"name":"serge.klochkov","email":"hypnoash@gmail.com"},{"name":"mikhail.shustov-clickhouse","email":"mikhail.shustov@clickhouse.com"},{"name":"hoorayimhelping","email":"d.w.schwarz@gmail.com"},{"name":"jump3610","email":"leticia.webb@clickhouse.com"},{"name":"tresleches","email":"julio@clickhouse.com"},{"name":"vineethasok","email":"vineeth.asokkumar@clickhouse.com"}],"homepage":"https://clickhouse.com","bugs":{"url":"https://github.com/ClickHouse/clickhouse-js/issues"},"dist":{"shasum":"de35b0f94aabed62f7f7150419d7df50908a7ca9","tarball":"http://registry-npm.ywwl.com/@clickhouse/client/download/@clickhouse/client-1.14.0.tgz","fileCount":60,"integrity":"sha512-co2spjR7wZoZ3Ck0H/jv76bpiuO3oJHtOmq9/gxFiod2DcT9NFg01u/hXcG8MJFnEJuMB6e3vGqS6IOnLwHqRw==","signatures":[{"sig":"MEYCIQDjvv8D6VwS6hZhygQE6CrT9aYHUsEfQxiC2q0XZ5r9OwIhAMBf1X3OLM40HGFqbHaEdaSygGjHJmgoEpDCBPWSIqPf","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":130306,"size":30698,"noattachment":false,"key":"/@clickhouse/client/-/@clickhouse/client-1.14.0.tgz"},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=16"},"gitHead":"3dc58b7445dc781dba337aee5e81e96b4467e63c","private":false,"_npmUser":{"name":"serge.klochkov","email":"hypnoash@gmail.com"},"repository":{"url":"git+https://github.com/ClickHouse/clickhouse-js.git","type":"git"},"_npmVersion":"10.9.3","description":"Official JS client for ClickHouse DB - Node.js implementation","directories":{},"_nodeVersion":"22.18.0","dependencies":{"@clickhouse/client-common":"1.14.0"},"_hasShrinkwrap":false,"devDependencies":{"simdjson":"^0.9.2"},"_npmOperationalInternal":{"tmp":"tmp/client_1.14.0_1763657162287_0.8086883141168002","host":"s3://npm-registry-packages-npm-production"},"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":1763657162472,"_cnpm_publish_time":1763657162472,"dist-tags":{"faster_exception_detection":"0.100.1","head":"1.25.0-head.bfd729c.1","latest":"1.25.0"}}