{"_id":"browser-manifest","_rev":"1032213","name":"browser-manifest","description":"Validate and normalize a browser manifest","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"vweevers","email":"dev@vincentweevers.nl"}],"time":{"modified":"2024-09-11T02:56:14.000Z","created":"2020-07-12T10:50:13.894Z","1.0.0":"2020-07-12T10:50:13.894Z"},"users":{},"author":{"name":"Vincent Weevers"},"repository":{"type":"git","url":"git+https://github.com/airtap/browser-manifest.git"},"versions":{"1.0.0":{"name":"browser-manifest","version":"1.0.0","description":"Validate and normalize a browser manifest","license":"MIT","author":{"name":"Vincent Weevers"},"scripts":{"test":"standard && nyc node test"},"dependencies":{},"devDependencies":{"nyc":"^15.1.0","standard":"^14.3.1","tape":"^4.13.0"},"repository":{"type":"git","url":"git+https://github.com/airtap/browser-manifest.git"},"homepage":"https://github.com/airtap/browser-manifest","keywords":["airtap","browser","manifest"],"engines":{"node":">=10"},"gitHead":"0b184e06a534671b0bd76000da2ecd6061343180","bugs":{"url":"https://github.com/airtap/browser-manifest/issues"},"_id":"browser-manifest@1.0.0","_nodeVersion":"12.11.1","_npmVersion":"6.11.3","_npmUser":{"name":"vweevers","email":"dev@vincentweevers.nl"},"maintainers":[{"name":"vweevers","email":"dev@vincentweevers.nl"}],"dist":{"integrity":"sha512-+XZt3+6aTlqzI7OWYz4IPx8a2Ogxnl65AA5rTQvPYdB6YO1SLDQLqWJ4TR2QoAwyb29w78vU6trpqX5+9RoXXg==","shasum":"fbf58bb517f687203d8e541c7fcc9292ccce1293","tarball":"http://registry-npm.ywwl.com/browser-manifest/download/browser-manifest-1.0.0.tgz","fileCount":4,"unpackedSize":6996,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfCurmCRA9TVsSAnZWagAAiswQAIZzDsJ0FuJfY3rLpd7B\nSMPBqJEXfivZjz+kH1M/u5owQx4hoJmkXa1SZTkbJeBumdCpgShNJSZiKnGs\nhnfgMp6x8uLc2ye6AYSe82uicjiB7j31Q8Z/KQWnZi0eGPPGvllyw4BtLIbX\nH8awwtupayOwqjEH9tUg1r3m/3LjNCQOGNVs80j7CyBQ5oGB4pyzSM+28qf6\nzJrRq/BjXNIwIYlB4HLUIy+f219u/QJnu/ud6vANwxrKeE8uf5tI/pKZhzNG\n2CrRKQdEDJKLfpwuOBpRrbLmOaDhRuY/zxI/Wj6vQ2ENL+oNcR+a6QKlxC3S\nkuDlcK2PDuxIOu1uxYfPvakxvCcNy7jwCHKzwOS/xhyI8kDkKyqEhhm9WLj3\nSm1IxBoRwlA8oz/409gIzihDruALOIn0AbgTLFpRDaasMyfZk4zfjnTSFoVD\nvp1kuR6ZXPVqIfH9fu/BDttmhXM7lLFL+9yDuio1Qj54dvelOOF/1fpCtryg\nhUJ961txcUKRo6+l9IMQ6l5qHy2QPinYS1SlPp2mzfPmh9K8jmDQxwrLh4IY\nNZXz25uFDm15o/Oo1WJNH7w0NNodj0bn0dRE6kb2uBc0/pNnUUqddkkLQ1rn\nV3khUbp4XTJO/KD0AlSY+QrmL6BbtP1cYwGwrXcdW2TYJhk51Ip/LHsleG60\nRLNO\r\n=+puJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE2oNEnRZ/C9czF+naQVlkaS25X27XB3I1vc3WkSqcHlAiA9ScUcgTHde4kio+Y+3DVTjoRuspUMgnbAqxlxK/vkEQ=="}],"size":2937,"noattachment":false,"key":"/browser-manifest/-/browser-manifest-1.0.0.tgz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/browser-manifest_1.0.0_1594551013774_0.4988885711196389"},"_hasShrinkwrap":false,"publish_time":1594551013894,"_cnpm_publish_time":1594551013894}},"readme":"# browser-manifest\n\n**An informal specification to describe the basic properties of a browser (in the broadest sense) as well as the features it wants and supports.** Includes some code for validating and normalizing a manifest.\n\n[![npm status](http://img.shields.io/npm/v/browser-manifest.svg)](https://www.npmjs.org/package/browser-manifest)\n[![node](https://img.shields.io/node/v/browser-manifest.svg)](https://www.npmjs.org/package/browser-manifest)\n[![Travis](https://img.shields.io/travis/com/airtap/browser-manifest.svg)](https://travis-ci.com/airtap/browser-manifest)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Specification\n\n### Example\n\n```js\nmanifest = {\n  name: 'chrome',\n  version: '26',\n  platform: 'windows 2012',\n  title: 'Sauce Labs Google Chrome 26 on Windows 2012',\n  wants: {\n    tunnel: true\n  },\n  supports: {\n    headless: false\n  }\n}\n```\n\n### Properties\n\n#### `name`\n\nRequired, one of [`browser-names`](https://github.com/airtap/browser-names). Must be a non-empty, lowercase string.\n\n#### `version`\n\nOptional but recommended. If defined, it must be a non-empty string. Does not have to be fully qualified, as long as the version is unique among a set of browsers with the same properties. May also be a non-numeric prerelease version like \"beta\" or \"dev\". Examples:\n\n- `6`\n- `13.2`\n- `11.00.18362.1` (IE)\n- `80.0a1` (Firefox Nightly)\n- `beta`\n\n#### `title`\n\nOptional but recommended. A string for display purposes, for humans to identify this browser among others. Examples:\n\n- `Sauce Labs Google Chrome 27 on Mac 10.12`\n- `Playwright Firefox`\n- `System ie 11.00.18362.1`\n\n#### `wants`\n\nAn optional object describing (airtap) features that a browser wants, by the following optional properties:\n\n- `tunnel` (boolean): browser needs a tunnel to connect to local test server\n- `loopback` (boolean): browser needs a hostname other than `localhost` in order to route 127.0.0.1 traffic through a tunnel.\n\n#### `supports`\n\nAn optional object describing features supported by a browser, by the following optional properties:\n\n- `headless` (boolean): browser can be configured to be headless (TBD: is this distinct from a root `headless` property that would indicate that the browser is always or never headless?)\n\n#### `options`\n\nAn optional object with arbitrary properties that exists to customize the browser behavior. Define defaults here, to communicate available options. The `options` property is ignored in [`airtap-match-browsers`](https://github.com/airtap/match-browsers).\n\n#### `provider`\n\nName of the [`browser-provider`](https://github.com/airtap/browser-provider) that provided this manifest. Not necessary to set, handled internally by Airtap 4.\n\n### Additional properties\n\nThe manifest may contain additional properties not described here, including nested objects. Such properties can be used by whatever tool launches a browser and by [`airtap-match-browsers`](https://github.com/airtap/match-browsers) for more specific matching.\n\n## API\n\n### Usage\n\n```js\nconst bm = require('browser-manifest')\n\n// Validates and normalizes\nconst manifest = bm({\n  name: 'chrome',\n  version: '27'\n})\n\n// Adds a few defaults\nconsole.log(manifest.wants) // {}\nconsole.log(manifest.supports) // {}\nconsole.log(manifest.options) // {}\n```\n\n### Install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install browser-manifest\n```\n\n## License\n\n[MIT](LICENSE.md) © 2020-present Airtap contributors.\n","_attachments":{},"homepage":"https://github.com/airtap/browser-manifest","bugs":{"url":"https://github.com/airtap/browser-manifest/issues"},"license":"MIT"}