Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

postcss-normalize-string

Package Overview
Dependencies
1
Maintainers
7
Versions
31
Issues
File Explorer

Advanced tools

postcss-normalize-string

Normalize wrapping quotes for CSS string literals.

    5.1.0latest

Version published
Maintainers
7
Weekly downloads
9,769,400
decreased by-9.68%

Weekly downloads

Readme

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

FAQs

What is postcss-normalize-string?

Normalize wrapping quotes for CSS string literals.

Is postcss-normalize-string popular?

The npm package postcss-normalize-string receives a total of 9,238,006 weekly downloads. As such, postcss-normalize-string popularity was classified as popular.

Is postcss-normalize-string well maintained?

We found that postcss-normalize-string demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 7 open source maintainers collaborating on the project.

Last updated on 01 Mar 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc