
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
react-watermark-component
Advanced tools
react-watermark-component is a component that can generate a water mark background image.
react-watermark-component
is a component that can generate a water mark background image. yarn add react-watermark-component
or
npm i react-watermark-component --save
import ReactWaterMark from 'react-watermark-component';
or you can also load as follows:
const ReactWaterMark = require('react-watermark-component')
waterMarkText:string, the text of watermark
openSecurityDefense:bool, decide whether to open security defense. By default, the security defense isn't opened.
securityAlarm:function, when the security defense is opened and water mark is attacked, the securityAlarm callback will be called. The securityAlarm props is optional, it will be triggered when someone is deleting the water mark dom or modifying the style attribute of the water mark dom.
options:object, the options is optional, the default value of the field of the options object is as follows.
option | default value |
---|---|
chunkWidth | 200 |
chunkHeight | 60 |
textAlign | 'left' |
textBaseline | 'bottom' |
globalAlpha | 0.17 |
font | '14px Microsoft Yahei' |
rotateAngle | -0.26 |
fillStyle | '#666' |
render() {
const text = `${loginedUser.cas_username}, ${loginedUser.cas_id}`;
const beginAlarm = function() { console.log('start alarm'); };
const options = {
chunkWidth: 200,
chunkHeight: 60,
textAlign: 'left',
textBaseline: 'bottom',
globalAlpha: 0.17,
font: '14px Microsoft Yahei',
rotateAngle: -0.26,
fillStyle: '#666'
}
return (
<ReactWaterMark
waterMarkText={text}
openSecurityDefense
securityAlarm={beginAlarm}
options={options}
>
<AppLayout>
...
</Applayout>
</ReactWaterMark>
)
}
npm run build
FAQs
react-watermark-component is a component that can generate a water mark background image.
We found that react-watermark-component 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.