Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dustinspecker/is-css-property
Determine if a string is a valid CSS property
https://github.com/dustinspecker/is-css-property
Last synced: 2 days ago
JSON representation
Determine if a string is a valid CSS property
- Host: GitHub
- URL: https://github.com/dustinspecker/is-css-property
- Owner: dustinspecker
- License: mit
- Created: 2015-09-05T15:40:14.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-31T21:40:37.000Z (over 7 years ago)
- Last Synced: 2024-10-28T14:24:28.254Z (11 days ago)
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# is-css-property
[![NPM version](https://badge.fury.io/js/is-css-property.svg)](https://badge.fury.io/js/is-css-property) [![Build Status](https://travis-ci.org/dustinspecker/is-css-property.svg)](https://travis-ci.org/dustinspecker/is-css-property) [![Coverage Status](https://img.shields.io/coveralls/dustinspecker/is-css-property.svg)](https://coveralls.io/r/dustinspecker/is-css-property?branch=master)[![Code Climate](https://codeclimate.com/github/dustinspecker/is-css-property/badges/gpa.svg)](https://codeclimate.com/github/dustinspecker/is-css-property) [![Dependencies](https://david-dm.org/dustinspecker/is-css-property.svg)](https://david-dm.org/dustinspecker/is-css-property/#info=dependencies&view=table) [![DevDependencies](https://david-dm.org/dustinspecker/is-css-property/dev-status.svg)](https://david-dm.org/dustinspecker/is-css-property/#info=devDependencies&view=table)
> Determine if a string is a valid CSS property
*Uses [just-css-properties](https://github.com/blakeembrey/just-css-properties) for CSS properties list*
## Install
```
npm install --save is-css-property
```## Usage
### ES2015
```javascript
import isCssProperty from 'is-css-property';isCssProperty('lincoln');
// => falseisCssProperty('float');
// => true
```### ES5
```javascript
var isCssProperty = require('is-css-property');isCssProperty('lincoln');
// => falseisCssProperty('float');
// => true
```## LICENSE
MIT © [Dustin Specker](https://github.com/dustinspecker)