Website/node_modules/metalsmith-rename
2015-12-02 18:21:44 -05:00
..
dist Initial website 2015-12-02 18:21:44 -05:00
CHANGELOG.md Initial website 2015-12-02 18:21:44 -05:00
LICENSE Initial website 2015-12-02 18:21:44 -05:00
package.json Initial website 2015-12-02 18:21:44 -05:00
README.md Initial website 2015-12-02 18:21:44 -05:00

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