{"name":"webdriver-bidi-protocol","version":"0.0.1","keywords":["webdriver","bidi","protocol"],"author":{"name":"The Chromium Authors"},"license":"Apache-2.0","_id":"webdriver-bidi-protocol@0.0.1","dist":{"shasum":"062e1c9ebbad8679f8a18df9fea88b6380d004a8","tarball":"http://registry-npm.ywwl.com/webdriver-bidi-protocol/download/webdriver-bidi-protocol-0.0.1.tgz","fileCount":17,"integrity":"sha512-8o58YwKZSmy4SAZTeMuy6X0KcH+BUgxyr4fCqeWwWAo48FnRMj/dQev8LRHX257qrvJmuBoQQy49subHx9L2jQ==","signatures":[{"sig":"MEUCIAJDJGTCXEb1LrX7O1I9w82yJdTDJ0bBOnN+VOLtpM9RAiEA7C3RYdVHKMypln6fgzsmpIS29vOX20sjr/Tu2XVoxPE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":105822,"size":21113,"noattachment":false,"key":"/webdriver-bidi-protocol/-/webdriver-bidi-protocol-0.0.1.tgz"},"main":"out/index.js","types":"out/index.d.ts","gitHead":"eef884cc688d5225a29040caa8346f5a8f1b9889","_npmUser":{"name":"orkon","email":"alexei.rudenko@gmail.com"},"_npmVersion":"10.2.4","description":"This repository contains TypeScript types conforming to the WebDriver Bidi Protocol specification.","directories":{},"_nodeVersion":"20.10.0","_hasShrinkwrap":false,"devDependencies":{"tsd":"0.31.0","parse5":"^7.1.2","prettier":"3.2.5","typescript":"5.4.5","@types/node":"^20.12.12"},"_npmOperationalInternal":{"tmp":"tmp/webdriver-bidi-protocol_0.0.1_1719232963633_0.8513218159156344","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":1719232963804,"maintainers":[{"name":"orkon","email":"alexei.rudenko@gmail.com"},{"name":"google-wombot","email":"node-team-npm+wombot@google.com"}],"_cnpm_publish_time":1719232963804,"dist-tags":{"latest":"1.0.2"}}