# gulp-geojson

> convert multipule file format to geojson.

Latest version **0.2.0** (published 2014-03-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-geojson
pnpm add gulp-geojson
yarn add gulp-geojson
bun add gulp-geojson
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2014-03-14 |
| First published | 2014-02-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | chilijung |
| Maintainers | chilijung |
| Keywords | gulp, geo, geojson, gulpplugin |

## Links

- npm: https://www.npmjs.com/package/gulp-geojson
- Repository: https://github.com/DataGarage/gulp-geojson
- Homepage: https://github.com/DataGarage/gulp-geojson/
- Issues: https://github.com/DataGarage/gulp-geojson/issues/
- npm.io page: https://npm.io/package/gulp-geojson

## Dependencies (7)

- [filesize](https://npm.io/package/filesize.md) ~2.0.0
- [gulp-util](https://npm.io/package/gulp-util.md) ~2.2.0
- [map-stream](https://npm.io/package/map-stream.md) 0.0.4
- [temp-write](https://npm.io/package/temp-write.md) ~0.1.0
- [convert-geo](https://npm.io/package/convert-geo.md) latest
- [graceful-fs](https://npm.io/package/graceful-fs.md) ~2.0.0
- [gulp-rename](https://npm.io/package/gulp-rename.md) ~1.1.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.2.0 (latest) — 2014-03-14
- 0.1.3 — 2014-03-05
- 0.1.2 — 2014-02-24
- 0.1.1 — 2014-02-22
- 0.1.0 — 2014-02-22

## README

# gulp-geojson

[![Build Status](https://travis-ci.org/DataGarage/gulp-geojson.png?branch=master)](https://travis-ci.org/DataGarage/gulp-geojson)

Converting multipule geo file format to geojson using gulp.

## Install

```
npm install --save-dev gulp-geojson
```


## Support

- kml
- csv
- tsv
- topojson
- gpx 


## Example

```js
var gulp = require('gulp');
var geojson = require('./');
var rename = require('gulp-rename');

// kml
gulp.task('kml', function () {
    gulp.src('sample/data/*.kml')
        .pipe(geojson())
        .pipe(rename({extname: '.geojson'}))
        .pipe(gulp.dest('./sample/dist'));
});

// csv
gulp.task('csv', function () {
    gulp.src('sample/data/*.csv')
        .pipe(geojson())
        .pipe(rename({extname: '.geojson'}))
        .pipe(gulp.dest('./sample/dist'));
});


// tsv
gulp.task('tsv', function () {
    gulp.src('sample/data/*.tsv')
        .pipe(geojson())
        .pipe(rename({extname: '.geojson'}))
        .pipe(gulp.dest('./sample/dist'));
});

// gpx
gulp.task('gpx', function () {
    gulp.src('sample/data/*.gpx')
        .pipe(geojson())
        .pipe(rename({extname: '.geojson'}))
        .pipe(gulp.dest('./sample/dist'));
});

// topojson
gulp.task('topojson', function () {
    gulp.src('sample/data/*.topojson')
        .pipe(geojson())
        .pipe(rename({extname: '.geojson'}))
        .pipe(gulp.dest('./sample/dist'));
});

gulp.task('default', ['kml','csv','tsv','gpx','topojson']);
```


## API

### geojson()

```
geojson()
```

## License

MIT [@chilijung](http://github.com/chilijung)

---
_Source: https://npm.io/package/gulp-geojson · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
