create-stylesheet
Advanced tools
Comparing version 0.2.0 to 0.3.0
module.exports = function createStyleSheet(blocks) { | ||
let style = document.createElement('style'); | ||
let text = Object.keys(blocks).map(function (selector) { | ||
var style = document.createElement('style'); | ||
var text = Object.keys(blocks).map(function (selector) { | ||
return processRuleSet(selector, blocks[selector]); | ||
@@ -5,0 +5,0 @@ }).join('\n'); |
{ | ||
"name": "create-stylesheet", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Dynamically create a stylesheet", | ||
@@ -11,3 +11,3 @@ "main": "index.js", | ||
"type": "git", | ||
"url": "git+https://github.com/mzabriskie/create-styleshet.git" | ||
"url": "git+https://github.com/mzabriskie/create-stylesheet.git" | ||
}, | ||
@@ -22,5 +22,5 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/mzabriskie/create-styleshet/issues" | ||
"url": "https://github.com/mzabriskie/create-stylesheet/issues" | ||
}, | ||
"homepage": "https://github.com/mzabriskie/create-styleshet#readme", | ||
"homepage": "https://github.com/mzabriskie/create-stylesheet#readme", | ||
"devDependencies": { | ||
@@ -27,0 +27,0 @@ "babel-cli": "^6.6.5", |
@@ -1,2 +0,2 @@ | ||
# create-stylesheet | ||
# create-stylesheet [![build status](https://img.shields.io/travis/mzabriskie/create-stylesheet.svg?style=flat-square)](https://travis-ci.org/mzabriskie/create-stylesheet) | ||
@@ -3,0 +3,0 @@ Dynamically create a stylesheet |
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
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
2599
5
1
1