postcss-normalize-string-nightly

Normalize wrapping quotes for CSS string literals.

MIT 9 个版本
安装
npm install postcss-normalize-string-nightly
yarn add postcss-normalize-string-nightly
pnpm add postcss-normalize-string-nightly
bun add postcss-normalize-string-nightly
README

This is an un-official nightly release of cssnano's postcss-normalize-string

In this, the package is named as postcss-normalize-string-nightly

In from this docs, you need to replace every

postcss-normalize-string --> postcss-normalize-string-nightly


Original Docs below


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

版本列表
0.8.4 2020-08-04
0.8.1 2020-08-01
0.7.31 2020-07-31
0.7.25 2020-07-25
0.7.24 2020-07-24
0.7.8 2020-07-08
0.6.30 2020-06-30
0.6.27 2020-06-27
0.6.26 2020-06-26