Socket
Socket
Sign inDemoInstall

example-cities

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    example-cities

An list of common cities around the world, their longitude/latitude and wikipedia link. This module is indended to be used only for examples / demos.


Version published
Weekly downloads
415
decreased by-11.89%
Maintainers
1
Install size
71.6 kB
Created
Weekly downloads
 

Readme

Source

Example Cities

An list of common cities around the world, their longitude/latitude and wikipedia link. This module is indended to be used only for examples / demos.

Created from the following Wikipedia pages:

https://en.wikipedia.org/wiki/Latitude_and_longitude_of_cities,_A-H https://en.wikipedia.org/wiki/Latitude_and_longitude_of_cities,_I-P https://en.wikipedia.org/wiki/Latitude_and_longitude_of_cities,_Q-Z

Example usage

var cities = require('example-cities');

console.log(cities[0].latitude);
console.log(cities[0].longitude);
console.log(cities[0].name);

Updating the cities

To update the list of cities, run, first install the dependencies

npm install

Then

npm run update

Which will update the cities.json file.

FAQs

Last updated on 08 Nov 2015

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc