tree: 947eab75c446fd8b83d0a815b0c0d3ad9d21a7e4 [path history] [tgz]
  1. src/
  2. types/
  3. LICENSE-MIT
  4. package.json
  5. README.md
node_modules/postcss-normalize-string/README.md

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