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

rfc7946-to-d3

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rfc7946-to-d3

Converts rfc7946 geojson polygons to d3 compatible ones: d3 requires clockwise winding whereas rfc7946 specifies the opposite. See https://github.com/d3/d3-geo/pull/79

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
27
increased by125%
Maintainers
1
Weekly downloads
 
Created
Source

rfc7946-to-d3

Converts rfc7946 geojson polygons to d3 compatible ones: d3 requires clockwise winding order whereas rfc7946 specifies the opposite. See also https://github.com/d3/d3-geo/pull/79.

Usage

  • as npm module

install:

npm install --save rfc7946-to-d3

api:

A function that takes in rfc7946 geojson and spits out d3 compatible geojson (input is modified in place!).

  • as cli utility

install:

[sudo] npm install -g rfc7946-to-d3

use:

rfc7946-to-d3 < rfc7946.geojson > d3.geojson

See also

  • geojson-rewind a module that enforces geojson polygon ring winding order.

Keywords

FAQs

Package last updated on 09 Mar 2017

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