Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
free-ui-tool
Advanced tools
组件迁移替换工具
可以快速对 ui 库进行替换,替换存在两种模式:
yarn add global free-ui-tool
npm i free-ui-tool -g
free-ui migrate
迁移替换 UIfree-ui config [option]
获取配置以下是一个简单的配置文件:
{
dir: ["src"],
script: {
//需要匹配的文件扩展名
extension: ["vue", "js"],
//需要进行匹配的目录
//yarn 删除的安装包
removePackage: [],
//yarn 需要安装的安装包
installPackage: [],
//npm 扩展参数
npmOption: [],
//npm 源
registry: "https://registry.npmjs.org/"
},
style: {
//需要匹配的文件扩展名
extension: ["css", "less", "scss"]
},
// 可选 normal detail 两种模式,普通模式只适用于修改tag前缀,detail模式用于替换组件内属性、slot、events
mode: "normal",
// mode:normal 下启用
tag: {
old: "i-",
replece: "q-"
},
// 组件替换规则,mode:detail 下启用
components: [
{
name: "i-cascader",
patternRule: {
// 目标tag
tag: "q-cascader",
attribute: {
// 需要替换的组件属性名
replacedNames: {
data: "options",
trigger: "expandTrigger",
"change-on-select": "checkStrictly"
},
// 需要替换的组件属性值
replacedValue: {
// eg: size:large => size:medium
size: {
large: "medium"
}
},
// 需要移除的属性
removed: [],
// 什么情况下 需要记录文件位置,方便后续手动修改
logTiming: ["render-format"]
},
events: {
logTiming: ["on-change"]
}
}
}
]
};
FAQs
The npm package free-ui-tool receives a total of 2 weekly downloads. As such, free-ui-tool popularity was classified as not popular.
We found that free-ui-tool 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 several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.