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

example-cities

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

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.

  • 0.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
478
decreased by-26.01%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 08 Nov 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc