@escio/metalsmith-set-extension

1.0.2 • Public • Published

@escio/metalsmith-set-extension

Metalsmith plugin setting the extension of processed files

Installation

$ npm install @escio/metalsmith-set-extension

Usage

The plugin has a single parameter, the extension you wish to set on the processed files. The existing extension is overwritten.

var metalsmith = require('metalsmith')
var setExtension = require('@escio/metalsmith-set-extension')

metalsmith(
    __dirname
).use(
    // Set the extension of all processed files to .html
    setExtension('.html')
).build((err) => {
    if (err) {
        throw err;
    }
});

License

ISC © Escio AS

Readme

Keywords

Package Sidebar

Install

npm i @escio/metalsmith-set-extension

Weekly Downloads

1

Version

1.0.2

License

ISC

Last publish

Collaborators

  • sanders54
  • bsantos22
  • wien
  • joakimescio