@yuheiy/metalsmith-filter
v0.0.1
Published
A Metalsmith plugin to filter files.
Downloads
2
Readme
metalsmith-filter
A Metalsmith plugin to filter files.
Installation
npm install @yuheiy/metalsmith-filter
Usage
const filter = require('@yuheiy/metalsmith-filter')
const path = require('path')
metalsmith.use(
filter((filename, data) => {
// Include only files with extension `.html`
return path.extname(filename) === '.html'
}),
)
License
MIT