postcss-normalize-string (5.1.0)

Published 2026-02-24 14:03:12 +00:00 by atheaadmin

Installation

registry=
npm install postcss-normalize-string@5.1.0
"postcss-normalize-string": "5.1.0"

About this package

postcss-normalize-string

Normalize strings with PostCSS.

Install

With npm do:

npm install postcss-normalize-string --save

Example

Input

p:after{ content: '\\'string\\' is intact' }

Output

p:after{ content:"'string' is intact" }

Usage

See the PostCSS documentation for examples for your environment.

API

normalize([options])

options

preferredQuote

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:''}

Contributors

See CONTRIBUTORS.md.

License

MIT © Ben Briggs

Dependencies

Dependencies

ID Version
postcss-value-parser ^4.2.0

Development Dependencies

ID Version
postcss ^8.2.15

Peer Dependencies

ID Version
postcss ^8.2.15

Keywords

css postcss postcss-plugin
Details
npm
2026-02-24 14:03:12 +00:00
1
Ben Briggs
MIT
latest
3.8 KiB
Assets (1)
Versions (1) View all
5.1.0 2026-02-24