Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
geo-city-finder
Advanced tools
A lightweight JavaScript library for identifying cities based on geographical coordinates and determining if provided coordinates match those of a city with high accuracy.
A lightweight JavaScript library for identifying cities based on geographical coordinates and determining if provided coordinates match those of a city with high accuracy.
Add Geo City Finder
to your project with npm:
npm install geo-city-finder
Or use yarn:
yarn add geo-city-finder
import { getCoordinatesMatch } from 'geo-city-finder';
// Find if is user from current city
const cityCoordinates = {
accuracy: 2546.076925492267,
latitude: 40.1872,
longitude: 44.5152,
};
getCoordinatesMatch(cityCoordinates).then((result) => {
// Compares user coordinates with city coordinates...
console.log(result); // true or false
});
Got ideas or found a bug? We appreciate your contributions! Here's how you can get involved:
Open an Issue: If you have a new feature idea, want to report a bug, or have a general question, open an issue.
Send a Pull Request (PR): Contributions are welcome! If you'd like to contribute code, follow these steps:
Licensed under the MIT License.
Made with ❤️ by Albert Arakelyan
FAQs
A lightweight JavaScript library for identifying cities based on geographical coordinates and determining if provided coordinates match those of a city with high accuracy.
The npm package geo-city-finder receives a total of 4 weekly downloads. As such, geo-city-finder popularity was classified as not popular.
We found that geo-city-finder demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.