npm.io
0.6.0 • Published 6 years ago

@amendable/inline-style-properties

Licence
MIT
Version
0.6.0
Deps
1
Size
53 kB
Vulns
0
Weekly
0
Stars
1

Inline Style Properties

Usage

Check if inline styles has property

import { hasProperty } from '@amendable/inline-style-properties'

hasProperty('MozAnimation') // true
hasProperty('display') // true
hasProperty('test') // false

You can exclude vendor properties by passing includeVendor option;

hasProperty('MozAnimation', { includeVendor: false }) // false

Get all properties list

import properties from '@amendable/inline-style-properties'

console.log(properties) // ['display', 'MozAnimation', ...]