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

postcss-normalize-url

Package Overview
Dependencies
2
Maintainers
8
Versions
54
Issues
File Explorer

Advanced tools

postcss-normalize-url

Normalize URLs with PostCSS

    5.1.0latest

Version published
Maintainers
8
Weekly downloads
10,092,800
decreased by-12.91%

Weekly downloads

Readme

Source

postcss-normalize-url

Normalize URLs with PostCSS.

Install

With npm do:

npm install postcss-normalize-url --save

Example

Input

h1 { background: url("http://site.com:80/image.jpg") }

Output

h1 { background: url(http://site.com/image.jpg) }

Note that this module will also try to normalize relative URLs, and is capable of stripping unnecessary quotes. For more examples, see the tests.

Usage

See the PostCSS documentation for examples for your environment.

API

normalize([options])

Please see the normalize-url documentation. By default, normalizeProtocol, stripHash & stripWWW are set to false.

Contributors

See CONTRIBUTORS.md.

License

MIT © Ben Briggs

Keywords

FAQs

What is postcss-normalize-url?

Normalize URLs with PostCSS

Is postcss-normalize-url popular?

The npm package postcss-normalize-url receives a total of 8,123,702 weekly downloads. As such, postcss-normalize-url popularity was classified as popular.

Is postcss-normalize-url well maintained?

We found that postcss-normalize-url demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 8 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