1.0.0 • Published 3 years ago

@jamshop/eleventy-plugin-string-filters v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Eleventy Plugin - String filters

A bunch of useful string filters for 11ty.

Install:

npm install @jamshop/eleventy-plugin-string-filters

Usage

In your main config .eleventy.js:

const pluginStringFilters = require("@jamshop/eleventy-plugin-string-filters");

module.exports = (eleventyConfig) => {
  eleventyConfig.addPlugin(pluginStringFilters);
  // and the rest of your config
};

Or import an individual filter:

const { plural } = require("@jamshop/eleventy-plugin-string-filters");

module.exports = (eleventyConfig) => {
  eleventyConfig.addFilter("plural", unique);
  // and the rest of your config
};

Filters include:

  • camelize
  • deslugify
  • embedUrl
  • excerpt
  • isAlpha
  • isAlphanumeric
  • isEmail
  • isEmbeddable
  • isNumeric
  • isUrl
  • lcfirst
  • singular
  • singular
  • plural
  • minify
  • readTime
  • swapCase
  • title
  • ucfirst
  • underscored
  • wordCount
1.0.0

3 years ago

0.0.5

3 years ago

0.0.6

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago