{"id":20080668,"url":"https://github.com/bluzky/nice-select2","last_synced_at":"2025-05-16T14:05:08.093Z","repository":{"id":40434347,"uuid":"196698384","full_name":"bluzky/nice-select2","owner":"bluzky","description":"A lightweight vanilla javascript library that replaces native select elements with customizable dropdowns","archived":false,"fork":false,"pushed_at":"2025-02-03T12:34:14.000Z","size":880,"stargazers_count":398,"open_issues_count":24,"forks_count":62,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-13T18:01:56.128Z","etag":null,"topics":["nice-select","nice-select2","select","select2","vanilla-javascript"],"latest_commit_sha":null,"homepage":"https://bluzky.github.io/nice-select2/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bluzky.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-07-13T08:34:49.000Z","updated_at":"2025-05-07T01:48:43.000Z","dependencies_parsed_at":"2025-04-12T10:32:16.387Z","dependency_job_id":"2d30c070-5e3d-4ac4-b5eb-93548c0ac860","html_url":"https://github.com/bluzky/nice-select2","commit_stats":{"total_commits":78,"total_committers":11,"mean_commits":7.090909090909091,"dds":0.4871794871794872,"last_synced_commit":"7073c8757f575c57bd376115a9a90b2c4046a31f"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluzky%2Fnice-select2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluzky%2Fnice-select2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluzky%2Fnice-select2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluzky%2Fnice-select2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bluzky","download_url":"https://codeload.github.com/bluzky/nice-select2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254544146,"owners_count":22088807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nice-select","nice-select2","select","select2","vanilla-javascript"],"created_at":"2024-11-13T15:29:31.568Z","updated_at":"2025-05-16T14:05:08.074Z","avatar_url":"https://github.com/bluzky.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nice Select\n\nA lightweight Vanilla JavaScript plugin that replaces native select elements with customizable dropdowns.\n\n## Install\n\n```\nnpm i nice-select2\n```\n\n## Usage\n\nInclude nice-select2 script.\n\n```html\n\u003cscript src=\"path/to/nice-select2.js\"\u003e\u003c/script\u003e\n```\n\nInclude the styles, either the compiled CSS...\n\n```html\n\u003clink rel=\"stylesheet\" href=\"path/to/nice-select2.css\" /\u003e\n```\n\nOr import nice-select2 using ES6 syntax\n\n```js\nimport NiceSelect from \"nice-select2\";\n```\n\n```scss\n@import \"~nice-select2/dist/css/nice-select2.css\";\n// or\n@import \"~nice-select2/src/scss/nice-select2.scss\";\n```\n\nFinally, initialize the plugin.\n\nUsing the minimified file directly:\n```javascript\nNiceSelect.bind(document.getElementById(\"a-select\"), {searchable: true, placeholder: 'select', searchtext: 'zoek', selectedtext: 'geselecteerd'});\n```\n\nUsing as import in webpack:\n```javascript\nnew NiceSelect(document.getElementById(\"a-select\"), {searchable: true});\n```\n\n## Instance method\n\n- `update()` : update nice-select items to match with source select\n- `focus()`: open dropdown list and focus on the search box if search is enabled\n- `disable()`: disable select\n- `enable()`: enable select\n- `destroy()`: destroy NiceSelect2 instance\n- `clear()`: clear all selected options\n\nFull documentation and examples at [https://bluzky.github.io/nice-select2/](https://bluzky.github.io/nice-select2/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluzky%2Fnice-select2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbluzky%2Fnice-select2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluzky%2Fnice-select2/lists"}