
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@eox/geosearch
Advanced tools
An autocompleted search input for geographic locations.
The element comes with a configurable button mode which can be enabled with the boolean attributes button
and, additionally, small
, to use the button in a map toolbar.
Real-time OpenCage API access is enabled by setting the endpoint
attribute. Optionally, a limit
attribute may be set to restrict the number of fetched locations.
npm install @eox/geosearch
// for setups with bundlers e.g. Vite
import "@eox/geosearch"
// or, for e.g. single HTML files without bundler
import "@eox/geosearch/dist/eox-geosearch.js"
<eox-geosearch></eox-geosearch>
You can limit search results to a specific geographic area using the extent
attribute. This is particularly useful when your application only supports specific regions. The format is minLon,minLat,maxLon,maxLat
:
<eox-geosearch extent="-125.0,24.0,-66.0,49.0"></eox-geosearch>
This example would limit results to approximately North America.
Add a BeerCSS tooltip to the search button using the tooltip
attribute (only works in button mode). You can also control the tooltip direction with tooltip-direction
:
<eox-geosearch
tooltip="Search for locations"
tooltip-direction="bottom"
button
small
></eox-geosearch>
Supported tooltip directions: left
(default), top
, bottom
, right
Furthermore, the alignment of the input and search results can be configured to align straight or in a 90-degree angle in any direction with the input-direction
and results-direction
attributes and the following directions:
left
up
right
down
To style the component, the following CSS variables are supported:
--button-bg
--button-fg
--input-fg
--input-bg
--results-fg
--results-bg
--results-border-color
For a development setup, please check the root-level readme.
Created automatically here
FAQs
An autocompleted search input for geographic locations.
The npm package @eox/geosearch receives a total of 60 weekly downloads. As such, @eox/geosearch popularity was classified as not popular.
We found that @eox/geosearch demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.