New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

postcss-unit-unit

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-unit-unit - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

46

index.d.ts

@@ -1,21 +0,27 @@

// 任意样式单位转换工具
declare function px2rpx({
unitToConvert: string,
viewportWidth: number,
unitPrecision: number,
propList: any,
viewportUnit: string,
fontViewportUnit: string,
fullViewportWidth: number,
selectorBlackList: array,
minPixelValue: number,
mediaQuery: any,
replace: boolean,
exclude: any,
include: any,
landscape: boolean,
landscapeUnit: string,
landscapeWidth: number
}: object)
// 任意样式单位转换工具
export = px2rpx
// 定义选项的类型
interface Px2RpxOptions {
unitToConvert: string;
viewportWidth: number;
unitPrecision: number;
viewportUnit: string;
fontViewportUnit: string;
fullViewportWidth: number;
selectorBlackList: any[];
propList: string[];
minPixelValue: number;
mediaQuery: boolean;
replace: boolean;
landscape: boolean;
landscapeUnit: string;
landscapeWidth: number;
exclude: any;
include: any;
}
// 定义 px2rpx 函数
declare function px2rpx(options: Px2RpxOptions): any;
// 导出函数
export = px2rpx;
{
"name": "postcss-unit-unit",
"main": "index.js",
"description": "A CSS post-processor that converts px to viewport units (vw, vh, rpx, rem, vmin, vmax).",
"version": "1.0.5",
"description": "A CSS post-processor that converts px to viewport units (vw, vh, rpx, rem, vmin, vmax, ...).",
"version": "1.0.6",
"license": "MIT",

@@ -7,0 +7,0 @@ "author": {

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