{"id":15589634,"url":"https://github.com/justjavac/deno-vendors","last_synced_at":"2026-05-16T13:04:39.312Z","repository":{"id":55016774,"uuid":"285748543","full_name":"justjavac/deno-vendors","owner":"justjavac","description":"List of vendor prefixes known to the web platform","archived":false,"fork":false,"pushed_at":"2022-07-29T15:13:02.000Z","size":34,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-06T00:41:37.179Z","etag":null,"topics":["deno","deno-mod","deno-module","deno-modules","deno-vendors","prefix","vendors","web"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/justjavac.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-07T05:49:49.000Z","updated_at":"2022-07-25T14:21:23.000Z","dependencies_parsed_at":"2022-08-14T09:10:33.006Z","dependency_job_id":null,"html_url":"https://github.com/justjavac/deno-vendors","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":"justjavac/deno_starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno-vendors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno-vendors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno-vendors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno-vendors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justjavac","download_url":"https://codeload.github.com/justjavac/deno-vendors/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246168097,"owners_count":20734389,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deno","deno-mod","deno-module","deno-modules","deno-vendors","prefix","vendors","web"],"created_at":"2024-10-02T23:03:46.279Z","updated_at":"2026-05-16T13:04:34.293Z","avatar_url":"https://github.com/justjavac.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deno-vendors\n\n[![tag](https://img.shields.io/github/release/justjavac/deno-vendors)](https://github.com/justjavac/deno-vendors/releases)\n[![Build Status](https://github.com/justjavac/deno-vendors/workflows/ci/badge.svg?branch=master)](https://github.com/justjavac/deno-vendors/actions)\n[![license](https://img.shields.io/github/license/justjavac/deno-vendors)](https://github.com/justjavac/deno-vendors/blob/master/LICENSE)\n\nList of vendor prefixes known to the web platform.\n\nList of (real\u003csup\u003e†\u003c/sup\u003e) vendor prefixes known to the web platform.\nFrom [Wikipedia](https://en.wikipedia.org/wiki/CSS_hack#Browser_prefixes) and the [CSS 2.1 spec](https://www.w3.org/TR/CSS21/syndata.html#vendor-keyword-history).\n\n† — real, as in, `mso-` and `prince-` are not included because they are\nnot valid.\n\n\u003e data from [wooorm/vendors](https://github.com/wooorm/vendors)\n\n## Usage\n\n```ts\nimport { vendors } from \"https://deno.land/x/vendors/mod.ts\";\n\nconsole.log(vendors);\n```\n\nOutput:\n\n```sh\n\u003e [\n\u003e  \"ah\",\n\u003e  \"apple\",\n\u003e  \"atsc\",\n\u003e  \"epub\",\n\u003e  \"fx\",\n\u003e  \"hp\",\n\u003e  \"khtml\",\n\u003e  \"moz\",\n\u003e  \"ms\",\n\u003e  \"o\",\n\u003e  \"rim\",\n\u003e  \"ro\",\n\u003e  \"tc\",\n\u003e  \"wap\",\n\u003e  \"webkit\",\n\u003e  \"xv\",\n\u003e ]\n```\n\nYou can also check if something is a correct `Vendor` by using `isVendor()`.\n\n```ts\nimport { isVendor } from \"https://deno.land/x/vendors/mod.ts\";\n\nconsole.log(isVendor(\"ms\"));\nconsole.log(isVendor(\"blah\"));\n```\n\nOutput:\n\n```sh\n\u003e true\n\u003e false\n```\n\nInstead of running `isVendor()` if you need to assign a variable to a supposed `string` that is a vendor, you can just set the type of the variable to `Vendor`. Thankfully, the TypeScript compiler will make sure that your variable is one of the valid `vendors`.\n\n```ts\nimport { Vendor } from \"https://deno.land/x/vendors/mod.ts\";\n\nconst myVendor: Vendor = \"o\";\n```\n\nNo output because it's valid!\n\nHere is an example of what would happen if our variable isn't a valid `Vendor`:\n\n```ts\nimport { Vendor } from \"https://deno.land/x/vendors/mod.ts\";\n\nconst myBadVendor1: Vendor = \"\";\nconst myBadVendor2: Vendor = 24;\n```\n\nHere are the two errors in the output\n\n```sh\n\u003e error: TS2322 [ERROR]: Type '\"\"' is not assignable to type '\"ah\" | \"apple\" | \"atsc\" | \"epub\" | \"fx\" | \"hp\" | \"khtml\" | \"moz\" | \"ms\" | \"o\" | \"rim\" | \"ro\" | \"tc\" | \"wap\" | \"webkit\" | \"xv\"'.\n\u003e const myBadVendor1: Vendor = \"\";\n\u003e       ~~~~~~~~~~~~\n\u003e\n\u003e TS2322 [ERROR]: Type '24' is not assignable to type '\"ah\" | \"apple\" | \"atsc\" | \"epub\" | \"fx\" | \"hp\" | \"khtml\" | \"moz\" | \"ms\" | \"o\" | \"rim\" | \"ro\" | \"tc\" | \"wap\" | \"webkit\" | \"xv\"'.\n\u003e const myBadVendor2: Vendor = 24;\n\u003e       ~~~~~~~~~~~~\n```\n\n### License\n\n[deno-vendors](https://github.com/justjavac/deno-vendors) is released under the MIT License. See the bundled [LICENSE](./LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustjavac%2Fdeno-vendors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustjavac%2Fdeno-vendors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustjavac%2Fdeno-vendors/lists"}