filter-css-properties

1.0.0 • Public • Published

npm mit license build status coverage status deps status

Filter the list of all available (possible) 178+ css2/3 properties with glob patterns

Install

npm install filter-css-properties
npm test

Usage

For more use-cases see the tests

var filterCssProperties = require('filter-css-properties');
 
filterCssProperties('*color*')
//=> [ 'background-color',
//  'border-bottom-color',
//  'border-color',
//  'border-left-color',
//  'border-right-color',
//  'border-top-color',
//  'color',
//  'column-rule-color',
//  'outline-color',
//  'text-decoration-color' ]
 
filterCssProperties(['*color*', '!border*'])
//=> [ 'background-color',
//  'color',
//  'column-rule-color',
//  'outline-color',
//  'text-decoration-color' ]

Author

Charlike Mike Reagent

License MIT license

Copyright (c) 2015 Charlike Mike Reagent, contributors.
Released under the MIT license.


Powered and automated by kdf, January 21, 2015

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    7
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    7
  • 0.0.0
    1

Package Sidebar

Install

npm i filter-css-properties

Weekly Downloads

8

Version

1.0.0

License

MIT

Last publish

Collaborators

  • vanchoy
  • tunnckocore