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

ziparound

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

ziparound

Find ZIP codes around a certain ZIP or INSEE (city ID) code, within a circle of N kilometers radius.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Ziparound (France only)

Find ZIP codes around a certain ZIP or INSEE (city ID) code, within a circle of N kilometers radius.

Forked from guix77/ziparound.

Install

From registry

yarn add --dev ziparound

From source

yarn install

Usage

If you want to refine results with travel time by car, you must get a MapBox access token, create an .env file and put inside:

MAPBOX_ACCESS_TOKEN=your_token

Download laposte.json data:

wget -o laposte.json https://datanova.legroupe.laposte.fr/explore/dataset/laposte_hexasmal/download/?format=json&timezone=Europe/Berlin&lang=fr

Then to use it:

# enter value in prompt
node index.js
# or alteratively
node index.js --code 75001 --distance 5
# or to specify a single city via INSEE
node index.js --insee --code 76540 --distance 5

Radius (in km) should be kept small, since the output of console.log is left to its default, 100.

FAQs

Package last updated on 29 Jan 2021

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