
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@vsirrr/seal
Advanced tools
使用 canvas 绘制公司公章、个人印章
npm i @vsirrr/seal
<!-- html -->
<div>
<canvas id="company"></canvas>
<button id="btn1">saveSeal</button>
</div>
<div>
<canvas id="person"></canvas>
<button id="btn2">saveSeal</button>
</div>
<script src="xxx/dist/index.js"></script>
<script>
const company = new Seal.Official('#company', {
// 名称
name: '公司名称公司名称公司名称',
// 类型(可选):1.公司公章 2.合同专用章
type: '公司公章',
// 安全码(可选)
code: '1102311231231',
// 是否显示内边线,默认为 false
innerLine: true
})
btn1.onclick = function () {
// saveSeal 调用的是 canvas 实例的 toDataURL() 方法,支持传参
console.log('saveSeal company:', company.saveSeal())
}
const person = new Seal.Personal('#person', {
// 姓名
name: '张三',
// 是否有边框,默认为 true
border: true
})
btn2.onclick = function () {
// saveSeal 调用的是 canvas 实例的 toDataURL() 方法,支持传参
console.log('saveSeal person:', person.saveSeal())
}
</script>
<!-- vue -->
<template>
<canvas id="canvas"></canvas>
</template>
<script>
import { Official } from '@vsirrr/seal'
export default {
mounted() {
new Official('#canvas', options)
}
}
</script>
<!-- react -->
<script>
import React, { useEffect } from 'react'
import { Personal } from '@vsirrr/seal'
export default function Seal() {
useEffect(() => {
new Personal('#canvas', options)
})
return <canvas id="canvas"></canvas>
}
</script>
FAQs
使用 canvas 绘制公司公章、个人印章
We found that @vsirrr/seal 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
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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.