🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

detect-geocsv

Package Overview
Dependencies
Maintainers
37
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detect-geocsv

Detects geocsv files from first 100 bytes.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
37
Created
Source

detect-geocsv

Node module that returns if a buffer has geocsv headers.

Version format follows Semantic Version

Build Status

Install

With npm:

npm install -g detect-geocsv

API

detectGeoCSV

Determine whether an input is a CSV file that could be put on a map: that it has geographical information that amounts to points or geography.

Parameters

  • buf string or Buffer input, an upload that could be any format

Examples

var detect = require('detect-geocsv');
var buffer = fs.readFileSync('path/to/data/file.csv');
var isgeocsv = detect(buffer);
assert.ok(isgeocsv);

Returns boolean whether the content is or is not geographic

CLI Usage

$ detect-geocsv file.csv
# echoes either true or false

Tests

npm test

Keywords

csv

FAQs

Package last updated on 04 Aug 2016

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