@mapbox/shapefile-fairy

0.4.0 • Public • Published

shapefile-fairy

the shapefile fairy

Extracts files composing a shapefile from a .zip archive into a temporary directory and returns the path to the .shp file.

Build Status

Install

$ npm install -g @mapbox/shapefile-fairy

Usage

In shell scripts

# exit 1 on failure, exit 0 on success and prints output path to stdout
$ shapefile-fairy /path/to/zipped/shapefile.zip

In JavaScript

var shpFairy = require('@mapbox/shapefile-fairy');

shpFairy('/path/to/zipped/shapefile.zip', function(err, output) {
  if (err) return console.error(err);
  doSomethingWith(output);
});

Readme

Keywords

none

Package Sidebar

Install

npm i @mapbox/shapefile-fairy

Weekly Downloads

12

Version

0.4.0

License

ISC

Last publish

Collaborators

  • mbx-npm-ci-production
  • mbx-npm-ci-staging
  • mbx-npm-advanced-actions-production
  • mbx-npm-advanced-actions-staging
  • mbx-npm-09-production
  • mbx-npm-08-production
  • mbx-npm-07-production
  • mbx-npm-06-production
  • mbx-npm-05-production
  • mbx-npm-04-production
  • mbx-npm-03-production
  • mbx-npm-02-production
  • mbx-npm-01-production
  • mbx-npm-02-staging
  • mapbox-npm-01
  • mapbox-npm-02
  • mapbox-npm-07
  • mapbox-npm-03
  • mapbox-npm-04
  • mapbox-npm-09
  • mapbox-npm-05
  • mapbox-npm-06
  • mapbox-npm-08
  • mapbox-npm-advanced-actions
  • mapbox-npm-ci
  • mapbox-npm
  • mapbox-admin
  • mapbox-machine-user