https://github.com/koopjs/koop-exporter
Plugin for Koop that transforms data into static file formats
https://github.com/koopjs/koop-exporter
Last synced: about 1 year ago
JSON representation
Plugin for Koop that transforms data into static file formats
- Host: GitHub
- URL: https://github.com/koopjs/koop-exporter
- Owner: koopjs
- License: apache-2.0
- Created: 2015-12-30T17:36:38.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T21:34:15.000Z (over 3 years ago)
- Last Synced: 2025-01-24T10:47:17.417Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.MD
- License: LICENSE
Awesome Lists containing this project
README
# Koop-Exporter
[](https://greenkeeper.io/)
*Exporter plugin for Koop*
[![npm][npm-img]][npm-url]
[![travis][travis-image]][travis-url]
## Requirements
- A Koop cache must be registered
- GDAL must be installed on the local machine
## Installation
### From package
`npm install koop-exporter`
### From source
```bash
git clone https://www.github.com/koopjs/koop-exporter
cd koop-exporter
npm install -g babel
npm install
npm run compile
```
## Usage
```javascript
const config = require('config')
const Koop = require('koop')
const koop = Koop(config)
const Cache = require('koop-pgcache')
const Exporter = require('koop-exporter')
// exporter depends on Koop-Cache so register it first
koop.register(Cache)
// koop will instantiate a new Exporter with the cache plugged in
koop.register(Exporter)
```
[npm-img]: https://img.shields.io/npm/v/koop-exporter.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/koop-exporter
[travis-image]: https://img.shields.io/travis/koopjs/koop-exporter.svg?style=flat-square
[travis-url]: https://travis-ci.org/koopjs/koop-exporter