npm.io
1.0.0 • Published 11 years ago

metalsmith-rename

Licence
MIT
Version
1.0.0
Deps
0
Vulns
0
Weekly
0
Stars
6

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

Keywords