New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

sheets2geojson

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sheets2geojson

Fetch a published Google Sheet, convert to GeoJSON

latest
Source
npmnpm
Version
0.0.4
Version published
Weekly downloads
10
900%
Maintainers
1
Weekly downloads
 
Created
Source

sheets2geojson

Purpose: fetches a single published Google Sheet and converts it to a GeoJSON of points.

To prepare the Google Sheet:

  • Format it with a Latitude and Longitude column, plus any other columns
  • Under File, select "Publish to Web", then publish as CSV.
  • Copy the URL, and keep just the ID part (no slashes, just letters and numbers)

To call:

import { sheets2geojson } from 'sheets2geojson';
const geojson = await sheets2geojson(id, /* optional */{ latitudeColumn: 'lat', longitudeColumn: 'lng' });

FAQs

Package last updated on 18 Aug 2020

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