
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@gradeup/copy-text-to-cb
Advanced tools
react component to copy text to clipboard with function to execute after copying.
React component to copy text to clipboard on clicking with function to execute after copying.
npm install --save @gradeup/copy-text-to-cb
import CopyText from '@gradeup/copy-text-to-cb'; // React Component to be used for copying text on click
usage
import CopyText from '@gradeup/copy-text-to-cb';
<CopyText
text="Hello copy text"
component={props => <button {...props}>Copy</button>}
cb={console.log}
/>
Folowing are the params to be passed :
option | used for | required | default |
---|---|---|---|
text | text to be copied | true | - |
component | component on which click is to be activated | false | props => <button type="button" {...props}>Copy</button> |
cb | function to execute after copying | false | () => {} |
pop | pop message to show after copying or not | false | true |
popStyle | pop box style | false | position: 'absolute', background: '#333', color: '#fff', padding: '3px', align: 'center', fontSize: '12px', transform: 'translateX(-50%)', left: '50%',transition: 'all 0.3s ease' |
Change the text and enjoy copying on your website.
You can visit some links for reference:
FAQs
react component to copy text to clipboard with function to execute after copying.
The npm package @gradeup/copy-text-to-cb receives a total of 2 weekly downloads. As such, @gradeup/copy-text-to-cb popularity was classified as not popular.
We found that @gradeup/copy-text-to-cb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.