1. metalsmith-url
Metalsmith plugin to add url to entries from transformation on filenames
metalsmith-url
Package: metalsmith-url
Created by: MoOx
Last modified: Sun, 19 Jun 2022 18:19:56 GMT
Version: 1.0.0
License: MIT
Downloads: 19
Repository: https://github.com/MoOx/metalsmith-url

Install

npm install metalsmith-url
yarn add metalsmith-url

metalsmith-url Travis Build Status

Metalsmith plugin to add url to entries from transformation on filenames

Installation

 $ npm install metalsmith-url

Usage

 import Metalsmith from "metalsmith"
import url from "metalsmith-url"

new Metalsmith("./")
  .use(
    url([
      [/\.md$/, ".html"],
      [/index\.html?$/, ""],
    ])
  )
  .build(err => {if (err) {throw err}})

Options

This plugin takes an array.
Each item must be an array of [pattern, replacement]

Changelog

License

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code