
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
@hebcal/geo-sqlite
Advanced tools
Hebcal ES6 interface to GeoNames and USA ZIP code SQLite databases
This package is designed for the hebcal.com and may not be generally reusable. It requires two separate databases, one made from GeoNames.org data (available via a Creative Commons license) and a USA ZIP code database (commercial license).
$ npm install @hebcal/geo-sqlite
$ ./node_modules/.bin/download-and-make-dbs
import {Location} from '@hebcal/core';
import {GeoDb} from '@hebcal/geo-sqlite';
import pino from 'pino';
const logger = pino();
const db = new GeoDb(logger, 'zips.sqlite3', 'geonames.sqlite3');
const loc1 = db.lookupZip('90210'); // Beverly Hills, California
const loc2 = db.lookupGeoname(293397); // Tel Aviv
const loc3 = db.lookupLegacyCity('IL-Netanya');
db.close();
Wrapper around sqlite databases
Wrapper around sqlite databases
Kind: global class
LocationLocationLocation| Param | Type |
|---|---|
| logger | any |
| zipsFilename | string |
| geonamesFilename | string |
Closes database handles
Kind: instance method of GeoDb
LocationKind: instance method of GeoDb
| Param | Type |
|---|---|
| zip | string |
LocationKind: instance method of GeoDb
| Param | Type |
|---|---|
| geonameid | number |
LocationKind: instance method of GeoDb
| Param | Type |
|---|---|
| cityName | string |
FAQs
Hebcal ES6 interface to GeoNames and USA ZIP code SQLite databases
The npm package @hebcal/geo-sqlite receives a total of 100 weekly downloads. As such, @hebcal/geo-sqlite popularity was classified as not popular.
We found that @hebcal/geo-sqlite 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.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.