Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
基于 VUE 的前端 PC 端 UI 组件库
npm install @58fe/p5 --save
导入需要的组件,例如:
import { Loading } from '@58fe/p5';
支持的插件有
支持自定义状态,内容,按钮等
如过需要按需加载指定组件,需要配合 bable-plugin-p5-import 插件使用
npm install bable-plugin-p5-import --save-dev
在.babelrc 文件添加如下配置
{
"plugins": [
[
"@58fe/babel-plugin-p5-import"
]
]
}
原因是 P5 的样式是基于 sass 编写的,所以需要依赖以下两个 npm 包:
npm install sass-loader node-sass --save-dev
原因是 P5 的 js 源码没进行 babel 转译,可以在 webpack 配置中的增加以下 loaders:
{
test: /p5.src.*?js$/,
loader: "babel-loader"
}
FAQs
pc端vue组件
The npm package @58fe/p5 receives a total of 108 weekly downloads. As such, @58fe/p5 popularity was classified as not popular.
We found that @58fe/p5 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 open source maintainers 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 uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.