1.0.3 • Published 6 years ago
check-css-prop v1.0.3
check-css-prop
Check CSS Property availability.
Install
npm install check-css-prop --save
Usage
import checkCssProp from 'check-css-prop';
checkCssProp('font-size')
// => fontSize
checkCssProp('object-fit')
// => webkitObjetFit
result
If browser support the given propName
, it will return the name in CamelCase.
If not, it will check for vendro prefix.