1.0.2 • Published 8 years ago

@escio/metalsmith-set-extension v1.0.2

Weekly downloads
-
License
ISC
Repository
bitbucket
Last release
8 years ago

@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

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago