You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browsers can display search suggestions (see search_provider.suggest_url) from an OpenSearch definition, but they have to be formatted as a JSON array [input:string, packageNames:string[]] or an XML SearchSuggestion (slower).
Example (for Wiktionary):
Request: https://en.wiktionary.org/w/api.php?action=opensearch&search=test
Response:
If you add a parameter like format=osxs that will return this simple array type, the OpenSearch description on this repo can be extended so browsers can display npm search suggestions:
Browsers can display search suggestions (see
search_provider.suggest_url
) from an OpenSearch definition, but they have to be formatted as a JSON array[input:string, packageNames:string[]]
or an XML SearchSuggestion (slower).Example (for Wiktionary):
Request:
https://en.wiktionary.org/w/api.php?action=opensearch&search=test
Response:
If you add a parameter like
format=osxs
that will return this simple array type, the OpenSearch description on this repo can be extended so browsers can display npm search suggestions:The text was updated successfully, but these errors were encountered: