
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
code42day-autosuggest
Advanced tools
<input type="text">
autosuggest component. Try the demo!
Inspired from http://oak.cs.ucla.edu/cs144/projects/javascript/suggest1.html.
$ component install component/autosuggest
var autosuggest = require('autosuggest');
var input = document.querySelector('input[type="text"]');
// array of suggestions
var suggestions = [
'Sunday',
'Monday',
'Tuesday',
'Wednesday',
'Thursday',
'Friday',
'Saturday'
];
// create an `autosuggest` instance
var suggest = autosuggest(input, suggestions);
// and you can change the array of suggestions to use if they get change
var newSuggestions = suggestions.concat([ 'Funday' ]);
suggest.set(newSuggestions);
Returns an Autosuggest
instance. The instance has .start()
called on it if the
optional suggestions
array is given, otherwise you must call .set(array)
and
.start()
manually.
Sets a new array of Strings to use as the suggestions for the Autosuggest
instance.
Starts the autosuggesting for the Autosuggest
instance.
Stops the autosuggesting for the Autosuggest
instance..
MIT
FAQs
Autosuggest values for text inputs
The npm package code42day-autosuggest receives a total of 0 weekly downloads. As such, code42day-autosuggest popularity was classified as not popular.
We found that code42day-autosuggest 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.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.