{"name":"webdriver-bidi-protocol","version":"0.0.6","keywords":["webdriver","bidi","protocol"],"author":{"name":"The Chromium Authors"},"license":"Apache-2.0","_id":"webdriver-bidi-protocol@0.0.6","homepage":"https://github.com/GoogleChromeLabs/webdriver-bidi-protocol#readme","bugs":{"url":"https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues"},"dist":{"shasum":"273f81a972b55e4bdae42f9ecc9ff2a5edb66a31","tarball":"http://registry-npm.ywwl.com/webdriver-bidi-protocol/download/webdriver-bidi-protocol-0.0.6.tgz","fileCount":28,"integrity":"sha512-XB1QPco9daQekkONaWOr4vGJr4OsiF5vtU2HCPJm4BoLUHuahb0ZzpJ8kyueM+TotnfiMsEdasiG+U8M5IrgUw==","signatures":[{"sig":"MEUCIQDVx4VvJWbB8gtB/wnPA7ny+NdvWc5SkfXvnFwV6KYXLQIgPDNW8r2ur/k/IcnrTau7TkXWqnDKPsD1sV9cexSJfXA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":156625,"size":30603,"noattachment":false,"key":"/webdriver-bidi-protocol/-/webdriver-bidi-protocol-0.0.6.tgz"},"main":"out/index.js","types":"out/index.d.ts","gitHead":"5c51b9fa57e13f5af1cd8296bb0e0ea9b202578e","scripts":{"test":"./tools/build.sh","format":"prettier -w 'out/**/*' 'src/**/*' 'test-d/**/*'"},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"repository":{"url":"git+https://github.com/GoogleChromeLabs/webdriver-bidi-protocol.git","type":"git"},"_npmVersion":"10.7.0","description":"This repository contains TypeScript types conforming to the [WebDriver BiDi](https://w3c.github.io/webdriver-bidi/) specification.","directories":{},"_nodeVersion":"18.20.3","_hasShrinkwrap":false,"devDependencies":{"gts":"^5.3.1","tsd":"0.31.1","parse5":"^7.1.2","prettier":"3.3.2","typescript":"5.5.2","@types/node":"^20.12.12"},"_npmOperationalInternal":{"tmp":"tmp/webdriver-bidi-protocol_0.0.6_1719907380243_0.365351272263273","host":"s3://npm-registry-packages"},"readme":"# webdriver-bidi-protocol\n\nThis repository contains TypeScript types conforming to the [WebDriver\nBiDi](https://w3c.github.io/webdriver-bidi/) specification. It also\nsupports WebDriver BiDi extension modules defined in other\nspecifications:\n\n- [Permissions](https://w3c.github.io/permissions/#automation-webdriver-bidi)\n- [Web Bluetooth](https://webbluetoothcg.github.io/web-bluetooth/#automated-testing)\n\n## Installation\n\n```\nnpm install webdriver-bidi-protocol\n```\n\n## Usage\n\nIn your TypeScript client implementation, you can now import WebDriver\nBiDi types:\n\n```ts\nimport {Commands} from 'webdriver-bidi-protocol';\n\nasync function sendCommand<T extends keyof Commands>(\n  method: T,\n  params: Commands[T]['params']\n): {result: Commands[T]['returnType']} {\n  // Implementation for sending the data using WebSockets.\n}\n\n// Now TypeScript validates that the params match the spec for 'browsingContext.print'.\nawait sendCommand('browsingContext.print', {context: 'xxx'});\n```\n\n## Versioning\n\nThis package patch version will be incremented whenever there are\nspecification updates. \n","publish_time":1719907380430,"maintainers":[{"name":"orkon","email":"alexei.rudenko@gmail.com"},{"name":"google-wombot","email":"node-team-npm+wombot@google.com"}],"_cnpm_publish_time":1719907380430,"dist-tags":{"latest":"1.0.2"}}