New:Socket for Asana Is Now Available.Learn more
Get Started

postcss-normalize-string

Package Overview
Dependencies
Maintainers
7
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-normalize-string

Normalize wrapping quotes for CSS string literals.

latest
Source
npmnpm
Version
9.0.0
Version published
Weekly downloads
17M
-4.7%
Maintainers
7
Weekly downloads
 
Created
Source

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

Keywords

css

FAQs

Package last updated on 27 Aug 2026

Related posts