
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
2R library button component implemented in React.
2r-button
is available as an npm package. Simply run npm install 2r-button
command.
To use it in your project:
import button from '2r-button'; // ES6 syntax
var button = require('2r-button'); // ES5 syntax
The following props can be passed to the component:
disabled
(Boolean): whether the button is disabled or not (defaults to false
)
text
(String): the text of the button (defaults to Button
)
classes
(String): a string of multiple classes, separated by space (defaults to ''
)
onClick
(Function): the callback function to be executed when button is pressed
There is an examples folder inside the project with a minimum config. Steps to run:
Clone the project and
Run npm install
Run gulp examples
Navigate to http://localhost:5000
This software is released under the terms of WTFPL v2.0 license.
FAQs
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
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.