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.
select-pure
Advanced tools
npm i select-pure --save
yarn add select-pure
<script src="https://unpkg.com/select-pure@latest/dist/bundle.min.js"></script>
import SelectPure from "select-pure";
new SelectPure(element, config);
`element` // Required. Either selector or HTML node.
`config` // Required. Configuration object.
Property | Required | Type | Description |
---|---|---|---|
options | true | Array | Collection of options to be rendered. Each option consists of value , label and optional property disabled . |
options[].value | true | String | Value of an option. |
options[].label | true | String | Label of an option. |
options[].disabled | false | Boolean | true if option is disabled. false by default. |
multiple | false | Boolean | true if multiple options can be selected. |
autocomplete | false | Boolean | Adds autocomplete input. Disabled by default. |
icon | false | String | If specified - <i></i> will be inserted inside select-pure__selected-label . Works only with multiple option set to true . |
inlineIcon | false | HMTLElement | Custom cross icon for multiple select. |
onChange | false | Function | Return value on select. Return Array if multiple is true . |
value | false | String | Array | Initially selected value. If not provided - first option will be selected. If multiple is true -- Array should be provided. |
const form = new FormPure(".form-wrapper", {});
select-pure/
└── lib/
└── select-pure.min.js
MIT
FAQs
Custom JavaScript <select> component. Easy-to-use, accessible, mobile friendly and super efficient
The npm package select-pure receives a total of 530 weekly downloads. As such, select-pure popularity was classified as not popular.
We found that select-pure 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.