New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

koop-provider-nemo

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koop-provider-nemo

A NEMO provider for Koop

  • 1.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

Koop Provider for NEMO

Cloned from the example Koop provider. Full documentation is provided here.

Koop provider file structure

FileDescription
src/index.jsMandatoryConfigures provider for usage by Koop
src/model.jsMandatoryTranslates remote API to GeoJSON
src/routes.jsOptionalSpecifies additional routes to be handled by this provider
src/controller.jsOptionalHandles additional routes specified in routes.js
test/model-test.jsOptionaltests the getData function on the model
test/fixtures/input.jsonOptionala sample of the raw input from the 3rd party API
config/default.jsonOptionalused for advanced configuration, usually API keys.

Test it out

Run server:

  • npm install
  • npm start

Example API Query:

  • curl localhost:8080/example/FeatureServer/0/query?returnCountOnly=true

Tests:

  • npm test

Development output callstack logs

During development you can output error callstack with

  • NODE_ENV=test npm start

Publish to npm

  • run npm init and update the fields
    • Choose a name like koop-provider-foo
  • run npm publish

Keywords

FAQs

Package last updated on 25 Aug 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc