
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
web-message
Advanced tools
web-message
A simple web message system
npm i web-message -S
###引用方式
// 常规多例模式
// const messageInstance = new Message();
// 单例模式无论在哪里引用都是同一个实例 节省内存开销
const messageInstance = WebMessage.getInstance();
messageInstance.createMessage({
message, // 要展示的消息 默认为 ""
messageType, // 消息类型 默认为 "info"
messageDuration, // 消息存在的时间 默认为 2000毫秒
messagePosition, // 消息的位置 默认为 "left"
messageHoverStop // 鼠标hover上去是否停留在页面上 默认为 false
showClose, // 是否显示关闭按钮 默认为 false
})
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| message | 文案 | String | - | - |
| messageType | 类型 | String | success / warning / error / info | info |
| messageDuration | 持续时间 | Number | - | 2000 |
| messagePosition | 位置 | String | left / center / right | leftt |
| messageHoverStop | hover组件在页面上停留 | Boolean | true / false | false |
| showClose | 是否显示关闭按钮 | Boolean | - | false |
FAQs
用js仿照element-ui创建的message组件,组件超级轻量.
We found that web-message 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.