canading-style-sheets
Advanced tools
Comparing version 1.0.0 to 1.0.1
11
index.js
@@ -1,2 +0,2 @@ | ||
var replacements = [ | ||
var suggestions = [ | ||
[/behaviour/i, 'behavior'], | ||
@@ -16,11 +16,12 @@ [/centre/i, 'center'], | ||
[/toonie/i, '200px'], | ||
[/toque/i, 'border-top'], | ||
[/t(o|u|ou)que/i, 'border-top'], | ||
[/translateZed/i, 'translateZ'], | ||
[/zed-index/i, 'z-index'], | ||
[/ +for sure$/i, ' !important'], | ||
[/ +please$/i, ' !important'] | ||
[/ +for sure$/i, ' !important'], | ||
[/ +please$/i, ' !important'], | ||
[/ +sorry$/i, ' !important'] | ||
]; | ||
var transform = function(string) { | ||
replacements.forEach(function(pair) { | ||
suggestions.forEach(function(pair) { | ||
string = string.replace(pair[0], pair[1]); | ||
@@ -27,0 +28,0 @@ }); |
{ | ||
"name": "canading-style-sheets", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "a friendlier style sheet", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -9,3 +9,3 @@ # canading style sheets | ||
```!css | ||
```css | ||
.tim-hortons { | ||
@@ -25,6 +25,6 @@ poutine: toonie please; | ||
```!css | ||
```css | ||
.tim-hortons { | ||
padding: 200px !important; | ||
background-color: grey; | ||
background-color: gray; | ||
line-height: 2em; | ||
@@ -43,3 +43,3 @@ text-align: center; | ||
```!bash | ||
```bash | ||
npm install canading-style-sheets --save | ||
@@ -50,3 +50,3 @@ ``` | ||
```!javascript | ||
```javascript | ||
var rework = require('rework'); | ||
@@ -53,0 +53,0 @@ var canadingStyleSheets = require('canading-style-sheets'); |
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
5189
90