https://github.com/wooorm/vendors
List of vendor prefixes known to the web platform
https://github.com/wooorm/vendors
css prefix vendor
Last synced: about 1 year ago
JSON representation
List of vendor prefixes known to the web platform
- Host: GitHub
- URL: https://github.com/wooorm/vendors
- Owner: wooorm
- License: mit
- Created: 2016-02-23T17:07:21.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2022-11-16T08:58:53.000Z (over 3 years ago)
- Last Synced: 2024-04-14T09:43:50.771Z (about 2 years ago)
- Topics: css, prefix, vendor
- Language: JavaScript
- Homepage:
- Size: 57.6 KB
- Stars: 11
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Funding: funding.yml
- License: license
Awesome Lists containing this project
README
# vendors
[![Build][build-badge]][build]
[![Coverage][coverage-badge]][coverage]
[![Downloads][downloads-badge]][downloads]
[![Size][size-badge]][size]
List of vendor prefixes.
## Contents
* [What is this?](#what-is-this)
* [When should I use this?](#when-should-i-use-this)
* [Install](#install)
* [Use](#use)
* [API](#api)
* [`vendors`](#vendors-1)
* [Types](#types)
* [Compatibility](#compatibility)
* [Security](#security)
* [Contribute](#contribute)
* [License](#license)
## What is this?
This is a little list of real (as in, `mso-` and `prince-` are not included
because they are not valid) vendor prefixes known to the web platform.
From [Wikipedia][wiki] and the [CSS 2.1 spec][spec].
## When should I use this?
You can use this package if you’re dealing with parsing and transforming CSS and
you don’t want to copy/paste these prefixes into each project.
## Install
This package is [ESM only][esm].
In Node.js (version 14.14+, 16.0+), install with [npm][]:
```sh
npm install vendors
```
In Deno with [`esm.sh`][esmsh]:
```js
import {vendors} from 'https://esm.sh/vendors@2'
```
In browsers with [`esm.sh`][esmsh]:
```html
import {vendors} from 'https://esm.sh/vendors@2?bundle'
```
## Use
```js
import {vendors} from 'vendors'
console.log(vendors)
```
Yields:
```js
[
'ah',
'apple',
'atsc',
'epub',
'hp',
'khtml',
'moz',
'ms',
'o',
'rim',
'ro',
'tc',
'wap',
'webkit',
'xv'
]
```
## API
This package exports the identifier `vendors`.
There is no default export.
### `vendors`
List of vendor prefixes (`string[]`).
## Types
This package is fully typed with [TypeScript][].
It exports no additional types.
## Compatibility
This package is at least compatible with all maintained versions of Node.js.
As of now, that is Node.js 14.14+ and 16.0+.
It also works in Deno and modern browsers.
## Security
This package is safe.
## Contribute
Yes please!
See [How to Contribute to Open Source][contribute].
## License
[MIT][license] © [Titus Wormer][author]
[build-badge]: https://github.com/wooorm/vendors/workflows/main/badge.svg
[build]: https://github.com/wooorm/vendors/actions
[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/vendors.svg
[coverage]: https://codecov.io/github/wooorm/vendors
[downloads-badge]: https://img.shields.io/npm/dm/vendors.svg
[downloads]: https://www.npmjs.com/package/vendors
[size-badge]: https://img.shields.io/bundlephobia/minzip/vendors.svg
[size]: https://bundlephobia.com/result?p=vendors
[npm]: https://docs.npmjs.com/cli/install
[esmsh]: https://esm.sh
[license]: license
[author]: https://wooorm.com
[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
[typescript]: https://www.typescriptlang.org
[contribute]: https://opensource.guide/how-to-contribute/
[wiki]: https://en.wikipedia.org/wiki/CSS_hack#Browser_prefixes
[spec]: https://www.w3.org/TR/CSS22/syndata.html#vendor-keyword-history