Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

geocoder.js

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geocoder.js - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

data/build.js

62

package.json
{
"name": "geocoder.js",
"version": "1.0.0",
"description": "Fast offline coarse Geocoder",
"main": "./lib/index.js",
"bin": {
"geocoder.js": "build.js"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/alixaxel/geocoder.js.git"
},
"keywords": [
"geo",
"geocoder",
"geonames"
],
"author": "Alix Axel (https://github.com/alixaxel/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/alixaxel/geocoder.js/issues"
},
"homepage": "https://github.com/alixaxel/geocoder.js",
"dependencies": {
"async": "^1.2.1",
"dblite": "^0.7.6",
"line-reader": "^0.2.4",
"lodash": "^3.9.3"
}
"name": "geocoder.js",
"version": "1.1.0",
"description": "Fast offline coarse Geocoder",
"main": "./lib/index.js",
"bin": {
"geocoder.js": "build.js"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/alixaxel/geocoder.js.git"
},
"keywords": [
"geo",
"geocoder",
"geonames"
],
"author": "Alix Axel (https://github.com/alixaxel/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/alixaxel/geocoder.js/issues"
},
"homepage": "https://github.com/alixaxel/geocoder.js",
"dependencies": {
"async": "^1.2.1",
"dblite": "^0.7.6",
"line-reader": "^0.2.4",
"lodash": "^3.9.3"
}
}

@@ -29,6 +29,20 @@ # geocoder.js

npm install geocoder
```shell
npm install geocoder.js
```
## Build Database
```shell
wget -q http://download.geonames.org/export/dump/countryInfo.txt -O ./node_modules/geocoder.js/data/geonames/countryInfo.txt && \
wget -q http://download.geonames.org/export/dump/cities1000.zip -O ./node_modules/geocoder.js/data/geonames/cities1000.zip && \
wget -q http://download.geonames.org/export/dump/alternateNames.zip -O ./node_modules/geocoder.js/data/geonames/alternateNames.zip && \
unzip ./node_modules/geocoder.js/data/geonames/cities1000.zip -d ./node_modules/geocoder.js/data/geonames/ && \
unzip ./node_modules/geocoder.js/data/geonames/alternateNames.zip -d ./node_modules/geocoder.js/data/geonames/ && \
rm ./node_modules/geocoder.js/data/geonames/*.zip && \
node ./node_modules/geocoder.js/data/build.js
```
## License
MIT

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc