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.4.1 to 1.4.2

12

package.json
{
"name": "wikigeocode",
"version": "1.4.1",
"version": "1.4.2",
"description": "Simple utility to geocode an administrative location using the wikimedia APIs.",

@@ -9,2 +9,12 @@ "main": "index.js",

},
"repository": {
"type": "git",
"url": "git+https://github.com/webdacjs/wikigeocode.git"
},
"keywords": [
"geo",
"geocode",
"wikipedia",
"geolocation"
],
"author": "Juan Convers",

@@ -11,0 +21,0 @@ "license": "MIT",

2

README.md

@@ -68,3 +68,3 @@ # wikigeocode

Copyright © 2018, [Juan Convers](https://github.com/webdacjs).
Copyright © 2019, [Juan Convers](https://juanconvers.com/).
Released under the [MIT License](LICENSE).
const {fetch} = require('simple-fetch-cache')
const repand = str => str.replace(/&/gi, ' and ')
const wikiprefix = 'https://en.wikipedia.org/w/api.php?action=query&format=json'
module.exports = (suffix, value) => fetch(`${wikiprefix}${suffix}${value}`, 3600000)
module.exports = (suffix, value) => fetch(`${wikiprefix}${suffix}${repand(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