Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
react-input-completion
Advanced tools
A cross-browser autocomplete component for React.
<InputCompletion>
defaults to the native HTML5 <datalist>
(unless you prefer it didn't) and polyfills any unsupported browsers, with no external dependencies.
<InputCompletion>
wraps an input, and connects it to a list of options
.
npm install --save react-input-completion
// in your component's render function
var browsers = ['Chrome', 'Firefox', 'IE', 'Safari'];
var onChange = this.onChange.bind(this);
<InputCompletion options={browsers} name="browsers" onValueChange={onChange}>
<input placeholder="Enter your browser name" />
</InputCompletion>
onValueChange
- Callback function for when input value changes. Arguments: DOMEvent, value.
options
- Array of suggestions to present to the user. They can be updated at any time.
name
- Unique identifier for the list
useNative
- Boolean (optional) to use native HTML5 <datalist>
if possible. Default: true
.
Default styles (for fallback to match native ) are available in react-input-completion.css.
npm i
- Installs dependenciesnpm start
- Compiles code, starts web server and demo page at localhost:3000.npm run test
- Runs tests, and re-runs on file changes.npm publish
- Compiles code and publishes to npm.FAQs
A cross-browser autocomplete component for React
The npm package react-input-completion receives a total of 1 weekly downloads. As such, react-input-completion popularity was classified as not popular.
We found that react-input-completion 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.