This package has been deprecated

Author message:

This module is now under the @mapbox namespace: install @mapbox/detect-geocsv instead

detect-geocsv

0.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i detect-geocsv

Weekly Downloads

3

Version

0.1.0

License

none

Last publish

Collaborators

  • mapbox-admin