mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-29 05:34:21 +08:00
Bug: none Change-Id: I9389834400d90beed8df9f28356720031abe9ef1 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6225902 Commit-Queue: Benedikt Meurer <bmeurer@chromium.org> Auto-Submit: Nikolay Vitkov <nvitkov@chromium.org> Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
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