css-properties
Advanced tools
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') |
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"] |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
0
0
6064
6
5
2
35
2
- Removedcheerio@^0.18.0
- Removedeach-async@^1.1.1
- Removedgot@^2.3.1
- RemovedCSSselect@0.4.1(transitive)
- RemovedCSSwhat@0.4.7(transitive)
- Removedcheerio@0.18.0(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removeddom-serializer@0.0.1(transitive)
- Removeddomelementtype@1.1.3(transitive)
- Removeddomhandler@2.3.0(transitive)
- Removeddomutils@1.4.31.5.1(transitive)
- Removedduplexify@3.7.1(transitive)
- Removedeach-async@1.1.1(transitive)
- Removedend-of-stream@1.4.4(transitive)
- Removedentities@1.0.01.1.2(transitive)
- Removedgot@2.9.2(transitive)
- Removedhtmlparser2@3.8.3(transitive)
- Removedinfinity-agent@2.0.3(transitive)
- Removedinherits@2.0.4(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedisarray@0.0.11.0.0(transitive)
- Removedlodash@2.4.2(transitive)
- Removedlowercase-keys@1.0.1(transitive)
- Removednested-error-stacks@1.0.2(transitive)
- Removedobject-assign@2.1.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedonetime@1.1.0(transitive)
- Removedprepend-http@1.0.4(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedread-all-stream@2.2.0(transitive)
- Removedreadable-stream@1.1.142.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedset-immediate-shim@1.0.1(transitive)
- Removedstatuses@1.5.0(transitive)
- Removedstream-shift@1.0.3(transitive)
- Removedstring_decoder@0.10.311.1.1(transitive)
- Removedtimed-out@2.0.0(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedwrappy@1.0.2(transitive)