Socket
Socket
Sign inDemoInstall

css-vendor

Package Overview
Dependencies
3
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    css-vendor

CSS vendor prefix detection and property feature testing.


Version published
Weekly downloads
2M
increased by1.32%
Maintainers
2
Install size
190 kB
Created
Weekly downloads
 

Readme

Source

Build Status Greenkeeper badge

CSS vendor prefix detection and property feature testing.

Vendor prefixes

console.log(cssVendor.prefix.js) // e.g. WebkitTransform

console.log(cssVendor.prefix.css) // e.g. -webkit-transform

Property support feature test

cssVendor.supportedProperty(prop)

Test if property is supported, returns false if not. Returns string if supported. May add a vendor prefix if needed.

console.log(cssVendor.supportedProperty('animation')) // e.g. -webkit-animation

Value support feature test

cssVendor.supportedValue(prop, value)

Test if value is supported, returns false if not. Returns string if supported. May add a vendor prefix if needed.

console.log(cssVendor.supportedValue('display', 'flex')) // e.g. -webkit-flex

Run tests

yarn
yarn test

License

MIT

Keywords

FAQs

Last updated on 04 Apr 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc