Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@koopjs/output-rss

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@koopjs/output-rss

A Koop output plugin for RSS 2.0

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Koop Output RSS 2.0

Coverage

This is a Koop output plugin that transforms datasets from Koop Provider into a RSS 2.0 feed (with GeoRSS) encoded in XML.

Proposed channel/item RSS 2.0 XML structure: link here

See the RSS 2.0 specification for more information.

Use

The plugin uses highly customizable feed template in JSON for field mapping which needs to be passed via Koop instance in res.locals.feedTemplate and koop.server.locals.feedTemplateTransformsRss.

An example of the feed template is below:

{
    channel: {
        title: 'ArcGIS Hubsite',
        description: 'ArcGIS Hub is an easy-to-configure cloud platform that organizes people, data, and tools to accomplish Initiatives and goals.',
        link: 'https://hub.arcgis.com/',
        category: 'Opendata',
        item: {
            title: '{{name}}',
            description: '{{searchDescription}}',
            author: '{{orgContactEmail}}',
            category: '{{categories}}',
            pubDate: '{{created:toUTC}}'
        }
    }
}

Visit the KoopJS docs for instructions on building and deploying a Koop app.

Develop

# clone and install dependencies
git clone https://github.com/koopjs/koopjs-output-rss
cd koopjs-output-rss
npm i

# starts the example Koop app found in ./example-app.
npm run dev

Test

Run the npm t commmand to spin up the automated tests.

FAQs

Package last updated on 30 Oct 2024

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