├── index.js ├── .travis.yml ├── .editorconfig ├── test.js ├── package.json ├── .gitignore ├── license ├── readme.md └── w3c-css-properties.json /index.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | module.exports = require('./w3c-css-properties') 4 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - '5' 4 | - '4' 5 | - '0.12' 6 | - '0.10' 7 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_style = space 6 | indent_size = 2 7 | charset = utf-8 8 | trim_trailing_whitespace = true 9 | insert_final_newline = true 10 | 11 | [*.md] 12 | trim_trailing_whitespace = false 13 | -------------------------------------------------------------------------------- /test.js: -------------------------------------------------------------------------------- 1 | import test from 'ava' 2 | import cssProperties from './' 3 | 4 | test('returns an array of CSS properties', t => { 5 | t.plan(1) 6 | 7 | t.true(cssProperties.length >= 177) 8 | }) 9 | 10 | test('returns an object', t => { 11 | t.plan(1) 12 | 13 | t.same(typeof cssProperties, 'object') 14 | }) 15 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "css-properties", 3 | "description": "Get list of all available CSS properties", 4 | "author": "John Otander", 5 | "version": "2.0.2", 6 | "files": [ 7 | "index.js", 8 | "w3c-css-properties.json" 9 | ], 10 | "scripts": { 11 | "build": "node build", 12 | "test": "ava" 13 | }, 14 | "repository": "johnotander/css-properties", 15 | "keywords": [ 16 | "css", 17 | "properties", 18 | "w3c", 19 | "property" 20 | ], 21 | "license": "MIT", 22 | "dependencies": {}, 23 | "devDependencies": { 24 | "ava": "*", 25 | "cheerio": "^0.19.0", 26 | "each-async": "^1.1.1", 27 | "got": "^5.0.0", 28 | "single-trailing-newline": "^1.0.0" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # .gitignore 2 | # 3 | # Copyright (c) 2015 Charlike Mike Reagent, contributors. 4 | # Released under the MIT license. 5 | # 6 | 7 | # Always-ignore dirs # 8 | # #################### 9 | _gh_pages 10 | node_modules 11 | bower_components 12 | components 13 | vendor 14 | build 15 | dest 16 | dist 17 | src 18 | lib-cov 19 | coverage 20 | nbproject 21 | cache 22 | temp 23 | tmp 24 | 25 | # Packages # 26 | # ########## 27 | *.7z 28 | *.dmg 29 | *.gz 30 | *.iso 31 | *.jar 32 | *.rar 33 | *.tar 34 | *.zip 35 | 36 | # OS, Logs and databases # 37 | # ######################### 38 | *.pid 39 | *.dat 40 | *.log 41 | *.sql 42 | *.sqlite 43 | *~ 44 | ~* 45 | 46 | # Another files # 47 | # ############### 48 | Icon? 49 | .DS_Store* 50 | Thumbs.db 51 | ehthumbs.db 52 | Desktop.ini 53 | npm-debug.log 54 | .directory 55 | ._* 56 | -------------------------------------------------------------------------------- /license: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) John Otander (johnotander.com) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # css-properties [![Build Status](https://secure.travis-ci.org/johnotander/css-properties.png?branch=master)](https://travis-ci.org/johnotander/css-properties) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard) 2 | 3 | Get list of all CSS properties. Regularly updated directly from the W3C website. 4 | 5 | ## Installation 6 | 7 | ```bash 8 | npm install --save css-properties 9 | ``` 10 | 11 | ## Usage 12 | 13 | ```js 14 | var cssProperties = require('css-properties') 15 | 16 | console.log(cssProperties) 17 | // => ['background', 'background-attachment', ...] 18 | ``` 19 | 20 | ## License 21 | 22 | MIT 23 | 24 | ## Contributing 25 | 26 | 1. Fork it 27 | 2. Create your feature branch (`git checkout -b my-new-feature`) 28 | 3. Commit your changes (`git commit -am 'Add some feature'`) 29 | 4. Push to the branch (`git push origin my-new-feature`) 30 | 5. Create new Pull Request 31 | 32 | Crafted with <3 by John Otander ([@4lpine](https://twitter.com/4lpine)). 33 | 34 | *** 35 | 36 | > This package was initially generated with [yeoman](http://yeoman.io) and the [p generator](https://github.com/johnotander/generator-p.git). 37 | -------------------------------------------------------------------------------- /w3c-css-properties.json: -------------------------------------------------------------------------------- 1 | ["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-shadow","box-sizing","caption-side","clear","clip","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","@font-face","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","hanging-punctuation","height","justify-content","@keyframes","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","max-height","max-width","@media","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","opacity","order","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","position","quotes","resize","right","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-justify","text-overflow","text-shadow","text-transform","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","width","word-break","word-spacing","word-wrap","z-index"] 2 | --------------------------------------------------------------------------------