
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
nice-select2
Advanced tools
A lightweight Vanilla JavaScript plugin that replaces native select elements with customizable dropdowns.
A lightweight Vanilla JavaScript plugin that replaces native select elements with customizable dropdowns.
npm i nice-select2
Include nice-select2 script.
<script src="path/to/nice-select2.js"></script>
Include the styles, either the compiled CSS...
<link rel="stylesheet" href="path/to/nice-select2.css" />
Or import nice-select2 using ES6 syntax
import NiceSelect from "nice-select2";
@import "~nice-select2/dist/css/nice-select2.css";
// or
@import "~nice-select2/src/scss/nice-select2.scss";
Finally, initialize the plugin.
Using the minimified file directly:
NiceSelect.bind(document.getElementById("a-select"), {searchable: true, placeholder: 'select', searchtext: 'zoek', selectedtext: 'geselecteerd'});
Using as import in webpack:
new NiceSelect(document.getElementById("a-select"), {searchable: true});
update() : update nice-select items to match with source selectfocus(): open dropdown list and focus on the search box if search is enableddisable(): disable selectenable(): enable selectdestroy(): destroy NiceSelect2 instanceclear(): clear all selected optionsFull documentation and examples at https://bluzky.github.io/nice-select2/.
FAQs
A lightweight Vanilla JavaScript plugin that replaces native select elements with customizable dropdowns.
The npm package nice-select2 receives a total of 4,552 weekly downloads. As such, nice-select2 popularity was classified as popular.
We found that nice-select2 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.