Gathering detailed insights and metrics for postcss-urlrewrite
Gathering detailed insights and metrics for postcss-urlrewrite
Gathering detailed insights and metrics for postcss-urlrewrite
Gathering detailed insights and metrics for postcss-urlrewrite
npm install postcss-urlrewrite
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
9 Stars
15 Commits
3 Forks
1 Watchers
1 Branches
2 Contributors
Updated on Apr 18, 2025
Latest Version
0.3.0
Package Id
postcss-urlrewrite@0.3.0
Unpacked Size
17.84 kB
Size
5.99 kB
File Count
33
NPM Version
8.11.0
Node Version
16.15.1
Published on
Aug 12, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
PostCSS plugin for easy url() rewriting.
1npm install postcss-urlrewrite
Usage example:
1// dependencies 2var fs = require( 'fs' ); 3var postcss = require( 'postcss' ); 4var urlrewrite = require( 'postcss-urlrewrite' ); 5 6// css to be processed 7var css = fs.readFileSync( 'build/build.css', 'utf8' ); 8 9// config for urlrewrite 10var config = { 11 imports: true, 12 properties: [ 'background', 'content' ], 13 rules: [ 14 { from: \local\, to: 'global' }, 15 { from: \local2\, to: 'global2' } 16 ] 17}; 18 19// process css using postcss-urlrewrite 20var out = postcss() 21 .use( urlrewrite( config ) ) 22 .process( css ) 23 .css;
Type: boolean Default: false
If set to true will replace urls in @import at-rules.
Type: array or boolean Default: true
List of css-properties to replace. If set to true, will work with all properties. If set to array will work only with the properties in the list.
Type: array of objects or function
There is to way to set rules:
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
2 existing vulnerabilities detected
Details
Reason
Found 1/15 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More