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

@11ty/eleventy-data-transistor-fm

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@11ty/eleventy-data-transistor-fm

An Eleventy data plugin for transistor.fm episodes.

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

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

Eleventy Data Plugin: Transistor.fm

API Docs: https://developers.transistor.fm/#episodes

Installation:

npm install @11ty/eleventy-data-transistor-fm

Usage

const TransistorFmPlugin = require("@11ty/eleventy-data-transistor-fm");

module.exports = function(eleventyConfig) {
  eleventyConfig.addPlugin(TransistorFmPlugin);
};

In a template

By default, the episodes are stored in transistorfm.episodes (this is configurable).

{% for episode in transistorfm.episodes %}
  {{ episode.title }}
{% endfor %}

Use with an API key

By default, a Transistor FM API key is optional. If you want to use one, create a .env file and add an entry for TRANSISTOR_FM_API_KEY:

TRANSISTOR_FM_API_KEY=This is my key

You can make the key required or even change the name of the environment variable by passing options to your plugin.

Pass in options

const TransistorFmPlugin = require("@11ty/eleventy-data-transistor-fm");

module.exports = function(eleventyConfig) {
  eleventyConfig.addPlugin(TransistorFmPlugin, {
    envApiKey: "TRANSISTOR_FM_API_KEY", // the name of the environment variable for the API key

    envApiKeyRequired: false, // fail if the environment variable is missing?

    data: "transistorfm.episodes", // where in Eleventy to store the return data
  });
};

Keywords

FAQs

Package last updated on 25 Feb 2022

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