Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@towavephone/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 @towavephone/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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.