@amendable/inline-style-properties

0.6.0 • Public • Published

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', ...]

Readme

Keywords

none

Package Sidebar

Install

npm i @amendable/inline-style-properties

Weekly Downloads

4

Version

0.6.0

License

MIT

Unpacked Size

53.9 kB

Total Files

6

Last publish

Collaborators

  • saimis
  • nedomas
  • jpalumickas