package
Normalize wrapping quotes for CSS string literals.
npm install postcss-normalize-stringGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Normalize strings with PostCSS.
With npm do:
npm install postcss-normalize-string --savep:after{ content: '\\'string\\' is intact' }p:after{ content:"'string' is intact" }See the PostCSS documentation for examples for your environment.
Type: string
Default: double
Sets what type of quote to prefer. Possible values are single and double.
var css = 'p:after{content:""}';
console.log(postcss(normalize({preferredQuote: 'single'})).process(css).css);
//=> p:after{content:''}See CONTRIBUTORS.md.
MIT © Ben Briggs
ludovicofischer
livrerie@gmail.com
Estimated unpacked size across 3 packages.
80.3 kB
Includes dependencies.