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

eleventy-plugin-podcast-tools

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eleventy-plugin-podcast-tools

This is a (potentially) quick and dirty plugin that will give you filters for using 11ty to host your podcast.

  • 0.1.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

11ty Plugin Podcast Tools

This is a (potentially) quick and dirty plugin that will give you filters for using 11ty to host your podcast.

Installation

npm install eleventy-plugin-podcast-tools

Add the plugin to your 11ty configuration file (probably .eleventy.js).

const podcastTools = require('eleventy-plugin-podcast-tools');

module.exports = function(eleventyConfig) {
    eleventyConfig.addPlugin(podcastTools);

    ...
}

Use the filters below to get the information you need from your files.

Filter: Duration

The Duration filter currently only works in Nunjucks (it's a Nunjucks async filter).

Syntax

In a Nunjucks template, you can use the following filter on a variable or expression that contains a path to an audio file in your project.

{{ path_to_file | duration }}

This will return the duration of your audio file in the following (iTunes approved?) syntax: HH:MM:SS i.e. 01:05:22

Filter: File Size

This filter (universal) will return the file size of your audio file in (iTunes approved?) bytes.

{{ path_to_file | filesize }}

Feedback

This was quick and dirty based on this twitter thread. If you have feedback, requests, etc. I'm all ears. If you have ideas for improving, I'll 100% accept pull requests of help.

FAQs

Package last updated on 02 Jan 2023

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