check-css-prop
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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.

/check-css-prop/

    Package Sidebar

    Install

    npm i check-css-prop

    Weekly Downloads

    1

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    3.48 kB

    Total Files

    5

    Last publish

    Collaborators

    • diablohu