New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

wikigeocode

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wikigeocode - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

.npmignore

6

package.json
{
"name": "wikigeocode",
"version": "1.3.0",
"version": "1.4.0",
"description": "Simple utility to geocode a location using the wikimedia APIs.",

@@ -10,5 +10,5 @@ "main": "index.js",

"author": "Juan Convers",
"license": "ISC",
"license": "MIT",
"dependencies": {
"node-fetch": "^2.3.0"
"simple-fetch-cache": "^1.3.0"
},

@@ -15,0 +15,0 @@ "devDependencies": {

# wikigeocode
This tiny module performs the geocode of a location using the wikimedia APIs, returning the wikipedia page title and the coordinates if available. For example:
This tiny module performs the geocode of a location using the wikimedia APIs, returning the wikipedia page title and the coordinates if available, caching the results for an hour. For example:

@@ -5,0 +5,0 @@ ```js

@@ -1,5 +0,6 @@

const fetch = require('node-fetch')
const {fetch} = require('simple-fetch-cache')
const wikiprefix = 'https://en.wikipedia.org/w/api.php?action=query&format=json'
module.exports = (suffix, value) => fetch(`${wikiprefix}${suffix}${value}`)
.then(res => res.json())
module.exports = (suffix, value) => fetch(`${wikiprefix}${suffix}${value}`, 3600000)
.then(res => res.reply)
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