Socket
Socket
Sign inDemoInstall

@thedutchcoder/postcss-rem-to-px

Package Overview
Dependencies
4
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.0 to 0.0.1

6

index.js

@@ -11,4 +11,6 @@ /**

const unit = 'px'
decl.value = decl.value.replace(/"[^"]+"|'[^']+'|url\([^)]+\)|(-?\d*\.?\d+)rem/g, (_a, b) => {
return `${b * opts.baseValue}${b == 0 ? '' : unit}`
decl.value = decl.value.replace(/"[^"]+"|'[^']+'|url\([^)]+\)|(-?\d*\.?\d+)rem/g, (match, p1) => {
if (p1 === undefined) return match
return `${p1 * opts.baseValue}${p1 == 0 ? '' : unit}`
})

@@ -15,0 +17,0 @@ }

{
"name": "@thedutchcoder/postcss-rem-to-px",
"version": "0.0.0",
"description": "PostCSS plugin test",
"version": "0.0.1",
"description": "PostCSS plugin to convert rem values to px values",
"keywords": [

@@ -6,0 +6,0 @@ "postcss",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc