
Research
npm Malware Targets Telegram Bot Developers with Persistent SSH Backdoors
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
react-simple-input
Advanced tools
A simple text input for React
react-simple-input is a small text input component with some utilities, like a timeOut before onChange is triggered, a clear button... If there is any feature you want, please open an issue.
Import it in your project:
import SimpleInput from 'react-simple-input'; // ES6
var SimpleInput = require('react-simple-input'); // ES5
Classic input with a placeholder
<SimpleInput placeholder='search' />
Classic input with a default value and a clear button
<SimpleInput defaultValue='a default value' clearButton />
Input with an onChange function, executing it 250ms after input change
<SimpleInput changeTimeout={250} onChange={ (value) => { console.log(value) } } />
For other props, see options.
Property | Description | Default value |
---|---|---|
className | the classes you want to pass to the component intput | '' |
classNameContainer | the classes you want to pass to the component container | '' |
defaultValue | the default value of your input | '' |
placeholder | the placeholder you want for your input | '' |
changeTimeout | the time you want to wait before onChange returns a value (usefull to avoid too many calls to onChange) | 0 |
clearButton | Add a clear button to clear the input in one click | false |
selectOnClick | select the input text when the input is clicked | false |
onChange | the function called when the input changes | () => {} |
onClick | the function called when the input is clicked | () => {} |
FAQs
A simple text input for React
The npm package react-simple-input receives a total of 12 weekly downloads. As such, react-simple-input popularity was classified as not popular.
We found that react-simple-input 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
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
Security News
pip, PDM, pip-audit, and the packaging library are already adding support for Python’s new lock file format.
Product
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.