Socket
Socket
Sign inDemoInstall

css-properties

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-properties - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

18

index.js

@@ -1,17 +0,3 @@

'use strict';
'use strict'
var buildProperties = require('./build');
var cssPropertiesJson = require('./w3c-css-properties');
module.exports = function cssProperties(refUrl, callback) {
if (!callback && !refUrl) {
return cssPropertiesJson.properties
}
return buildProperties(refUrl, callback)
};
module.exports.json = function json() {
return cssPropertiesJson;
};
module.exports.api = buildProperties;
module.exports = require('./w3c-css-properties')

2

LICENSE.md
The MIT License (MIT)
Copyright (c) 2014 John Otander
Copyright (c) 2014-2015 John Otander

@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

@@ -5,5 +5,7 @@ {

"author": "John Otander",
"version": "1.0.0",
"version": "2.0.0",
"files": ["index.js", "w3c-css-properties.json"],
"scripts": {
"lint": "jshint index.js && jscs index.js --reporter inline",
"build": "node build",
"test": "mocha",

@@ -33,8 +35,7 @@ "test-cov": "istanbul cover _mocha",

"homepage": "https://github.com/johnotander/css-properties",
"dependencies": {
"cheerio": "^0.18.0",
"dependencies": {},
"devDependencies": {
"cheerio": "^0.19.0",
"each-async": "^1.1.1",
"got": "^2.3.1"
},
"devDependencies": {
"got": "^4.1.1",
"istanbul-harmony": "^0.3.1",

@@ -41,0 +42,0 @@ "mocha": "*",

@@ -1,7 +0,4 @@

# css-properties
# css-properties [![Build Status](https://secure.travis-ci.org/johnotander/css-properties.png?branch=master)](https://travis-ci.org/johnotander/css-properties)
[![Build Status](https://secure.travis-ci.org/johnotander/css-properties.png?branch=master)](https://travis-ci.org/johnotander/css-properties)
Get list of all available (possible) CSS properties scraped directly from W3C website - returns an array.
Also features an API and CLI.

@@ -12,3 +9,2 @@ ## Installation

npm install --save css-properties
css-properties --help
```

@@ -19,16 +15,6 @@

```js
var cssProperties = require('css-properties');
var cssProperties = require('css-properties')
cssProperties([refUrl[,callback]]);
cssProperties(); // => ['background', 'background-attachment', ...]
cssProperties.json(); // => {properties: ['background', 'background-attachment', ...]}
cssProperties(function(err, res) {
// assert.equal(err, null || undefined);
// assert(res.length >= 178);
console.log(res)
// => ['background', 'background-attachment', ...]
});
console.log(cssProperties)
// => ['background', 'background-attachment', ...]
```

@@ -35,0 +21,0 @@

@@ -1,183 +0,1 @@

{
"___AUTO_GENERATED___": "Wed Jan 21 2015 15:09:08 GMT+0200 (EET)",
"properties": [
"align-content",
"align-items",
"align-self",
"animation",
"animation-delay",
"animation-direction",
"animation-duration",
"animation-fill-mode",
"animation-iteration-count",
"animation-name",
"animation-play-state",
"animation-",
"backface-visibility",
"background",
"background-attachment",
"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",
"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",
"icon",
"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"
]
}
["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-","backface-visibility","background","background-attachment","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","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"]
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc