
Research
/Security News
10 npm Typosquatted Packages Deploy Multi-Stage Credential Harvester
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.
postcss-px-to-vw-strong
Advanced tools
Support for converting CSS units (which convert PX by default) into viewport units (VW, VH, VMIN, and VMAX) support for custom units to customize the transformation content
postcss插件ts开发环境和项目模板搭建
husky和lint-stage集成自动代码格式、语法修复和自动单元测试postcss-px-to-vw-strong插件开发postcss-pixel-to-viewport插件原有的全部功能支持个性化定制单位
定制一个新的单位名称如
nx可以配置使用这个单位时的行为
- 是否开启转换
vw,默认开启,如果关闭的话,使用此单位,默认返回px,实现更细节的控制px到视口单位的转换- 个性化返回,可以使用一个函数,来控制使用此单位的时候,返回的什么内容,覆盖原来的尺寸,比如给每个尺寸都加上
2px。如果没有关闭vw转换,那么会使用behavior重新计算后的值来换算为vw返回css属性末尾追加内容,可以定义在转换后的新的css属性值追加一些字符串- 配置真实的替换单位,替换自定义单位。
css中使用自定义的单位;px,可以配置其他真实的转换单位替换px,比如embehavior函数,来接收每一个自定义单位的原始值,对其进行二次操作,二次操作后的值会继续输入插件进行处理joinString属性,可以定义在转换后的新的css属性值追加一些字符串npm i postcss-px-to-vw-strong
or
yarn add postcss-px-to-vw-strong
FAQs
Support for converting CSS units (which convert PX by default) into viewport units (VW, VH, VMIN, and VMAX) support for custom units to customize the transformation content
We found that postcss-px-to-vw-strong demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.