postcss-values-parser
Advanced tools
Comparing version
@@ -36,3 +36,3 @@ # API Documentation | ||
parser.colon({ value: ':' }); | ||
// → .button | ||
// → : | ||
``` | ||
@@ -51,3 +51,3 @@ | ||
parser.comma({ value: ',' }); | ||
// → + | ||
// → , | ||
``` | ||
@@ -54,0 +54,0 @@ |
@@ -10,2 +10,14 @@ 'use strict'; | ||
} | ||
toString () { | ||
let quote = this.quoted ? this.raws.quote : ''; | ||
return [ | ||
this.raws.before, | ||
'@', | ||
// we can't use String() here because it'll try using itself | ||
// as the constructor | ||
String.prototype.toString.call(this.value), | ||
this.raws.after | ||
].join(''); | ||
} | ||
} | ||
@@ -12,0 +24,0 @@ |
{ | ||
"name": "postcss-values-parser", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A CSS property value parser for use with PostCSS", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
47783
0.63%1230
0.9%