metalsmith-rename

1.0.0 • Public • Published

metalsmith-rename Travis Build Status

Metalsmith plugin to rename entries

Installation

$ npm install metalsmith-rename

Usage

import Metalsmith from "metalsmith"
import rename from "metalsmith-rename"
 
new Metalsmith("./")
  .use(
    rename([
      [/\.md$/, ".html"]
    ])
  )
  .build(err => {if (err) {throw err}})

Options

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

Changelog

License

Dependencies (0)

    Dev Dependencies (6)

    Package Sidebar

    Install

    npm i metalsmith-rename

    Weekly Downloads

    190

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • moox