{"name":"@clickhouse/client","version":"0.0.12","keywords":["clickhouse","sql","client"],"license":"Apache-2.0","_id":"@clickhouse/client@0.0.12","maintainers":[{"name":"serge.klochkov.ch","email":"serge.klochkov@clickhouse.com"},{"name":"mikhail.shustov-clickhouse","email":"mikhail.shustov@clickhouse.com"},{"name":"serge.klochkov","email":"hypnoash@gmail.com"}],"homepage":"https://clickhouse.com","bugs":{"url":"https://github.com/ClickHouse/clickhouse-js/issues"},"dist":{"shasum":"1ac46717295eb0b9a80c29d14ed371e626f2b7d7","tarball":"http://registry-npm.ywwl.com/@clickhouse/client/download/@clickhouse/client-0.0.12.tgz","fileCount":111,"integrity":"sha512-5ky9UOlD6nwqFeftl2toWfz06yZW4vTVNvqtdnmFICMCvoPylsHxWt6VvpCY411TWo2PGw2/am6wfaTrDU2J+A==","signatures":[{"sig":"MEYCIQCdoCGJRWUeSOGSWEeSECMWdYqv7TFXQZYD6YzJTHOQUwIhAMcTTd6VppgUCV/91OyseBzEAJHVEwjAVR8EKg15fcbF","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":261414,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2nwfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqBKRAAk6w5kUYf7DCb4FBuN8C3ehq3Mdgu64yVD5DzdHOtuKBncJpR\r\nxFqqWfhfXjxRLJgNpNSglD8FQdZ7z431fdC4j4MOOjxIoB/zmdM47WteLcFs\r\nIe9Vao+WaSSpT5Qa3Ovnn0mxKmR5cTOwb9J2xxfdb5+ARqopSXFhSjN/2+p2\r\nS2naywLicLyDrVxdBvK1XAJFhf/Rcb99VJUeM7elC02298K/q5GWnj4NOq4D\r\nJKw07043Xa2TGL0+1GBoTzl/3jbmHlkGGfNFbpz/QtjKVyztYy+Ofmz8neSk\r\nQDEAabAc8+mfU2EA45knTtZuHdShXaguM3RSXb+R4YBqfoNX0Bnt8tfg9zCh\r\nsHbNA+jU9jN8/+JlbmdoafiLSco5XPwrNWowK21YYjuVorkOkxn5HGp5C26m\r\ng/3fBfQSktX69r5yNIxYmoxaJuP1uG+2l/H1j2Q8fst/DZbYevTkd7qcuN1l\r\niIUYYNfnvBAWUYqGnATS2AwwnJ6iQSMrdGXiQ6b1Mni4AZkUWZg7Em+cnQrI\r\njDU+1YZTz+4lalfc3hw+jTQC9S2Z2Pw4LjmJGsR9yopBjydL9E9erzDT7Zqy\r\ncb/8NL1OJ22ok2HFpS0gMqEzqHCChsBcapUAZEXVX8lMxKhhDl/jr9BYeGpj\r\nBAjYjQXWCMbsEmWqLDc3O/yMdMkyjM/4Foo=\r\n=K1Ws\r\n-----END PGP SIGNATURE-----\r\n","size":64032,"noattachment":false,"key":"/@clickhouse/client/-/@clickhouse/client-0.0.12.tgz"},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=14"},"gitHead":"55e20e9f5aa28a34e8b049513ced2486f3ed2879","private":false,"scripts":{"lint":"eslint . --ext .ts","test":"jest --testPathPattern=__tests__ --globalSetup='<rootDir>/__tests__/setup.integration.ts'","build":"rm -rf dist; tsc","prepare":"husky install","lint:fix":"eslint --fix . --ext .ts","test:tls":"jest --testMatch='**/__tests__/tls/*.test.ts'","build:all":"rm -rf dist; tsc --project tsconfig.dev.json","test:unit":"jest --testMatch='**/__tests__/{unit,utils}/*.test.ts'","typecheck":"tsc --project tsconfig.dev.json --noEmit","test:integration":"jest --runInBand --testPathPattern=__tests__/integration --globalSetup='<rootDir>/__tests__/setup.integration.ts'","test:integration:cloud":"CLICKHOUSE_TEST_ENVIRONMENT=cloud jest --runInBand --testPathPattern=__tests__/integration --globalSetup='<rootDir>/__tests__/setup.integration.ts'","test:integration:local_cluster":"CLICKHOUSE_TEST_ENVIRONMENT=local_cluster jest --runInBand --testPathPattern=__tests__/integration --globalSetup='<rootDir>/__tests__/setup.integration.ts'"},"_npmUser":{"name":"serge.klochkov","email":"hypnoash@gmail.com"},"repository":{"url":"git+https://github.com/ClickHouse/clickhouse-js.git","type":"git"},"_npmVersion":"8.19.3","description":"Official JS client for ClickHouse DB","directories":{},"lint-staged":{"*.ts":["prettier --write","eslint --fix"]},"_nodeVersion":"16.19.0","dependencies":{"uuid":"^9.0.0","node-abort-controller":"^3.0.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.4.0","husky":"^8.0.2","eslint":"^8.32.0","split2":"^4.1.0","ts-jest":"^29.0.5","ts-node":"^10.9.1","prettier":"2.8.3","typescript":"^4.9.4","@types/jest":"^29.4.0","@types/node":"^18.11.18","@types/uuid":"^9.0.0","lint-staged":"^13.1.0","@types/split2":"^3.2.1","tsconfig-paths":"^4.1.2","@jest/reporters":"^29.4.0","eslint-config-prettier":"^8.6.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^5.49.0","@typescript-eslint/eslint-plugin":"^5.49.0"},"_npmOperationalInternal":{"tmp":"tmp/client_0.0.12_1675263007347_0.852456391219869","host":"s3://npm-registry-packages"},"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":1675263007537,"_cnpm_publish_time":1675263007537,"dist-tags":{"faster_exception_detection":"0.100.1","head":"1.25.0-head.bfd729c.1","latest":"1.25.0"}}