Metalsmith plugin to rename entries
npm install metalsmith-rename> Metalsmith plugin to rename entries
``console`
$ npm install metalsmith-rename
`js
import Metalsmith from "metalsmith"
import rename from "metalsmith-rename"
new Metalsmith("./")
.use(
rename([
[/\.md$/, ".html"]
])
)
.build(err => {if (err) {throw err}})
``
This plugin takes an array.
Each item must be an array of [pattern, replacement]