Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@remax/postcss-px2units

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@remax/postcss-px2units - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

6

index.js

@@ -11,3 +11,4 @@ var postcss = require('postcss');

targetUnits: 'rpx',
comment: 'no'
comment: 'no',
minPixelValue: 0
}, opts);

@@ -20,2 +21,5 @@

return str.replace(/\b(\d+(\.\d+)?)px\b/g, function (match, x) {
if (x <= opts.minPixelValue) {
return match;
}
var size = x * opts.multiple / opts.divisor;

@@ -22,0 +26,0 @@ return size % 1 === 0 ? size + opts.targetUnits : size.toFixed(opts.decimalPlaces) + opts.targetUnits;

2

package.json
{
"name": "@remax/postcss-px2units",
"version": "0.2.0",
"version": "0.2.1",
"description": "postcss plugin",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc