metalsmith-rename
Metalsmith plugin to rename entries
Last updated 5 years ago by moox .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install metalsmith-rename 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (5 years ago)

1 Versions

  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 2
This Month 2
Last Day 1
Last Week 1
Last Month 15
Dependencies (0)
None
Dev Dependencies (6)

Copyright 2014 - 2016 © taobao.org |