frontformatter

1.1.0 • Public • Published

Test Semantic Release view on npm

Front Formatter

If you work with hugo, 11ty or any other static site generator, you'll likely end up with a lot of Markdown files after a while.

This script helps to migrate, add or remove properties from Markdwon frontmatter.

Usage

Specify a source folder or copy your markdown files into src. You can define properties to add and remove, then run the transformation function:

const frontformatter = require('frontformatter')

const addProperties = {
  add: 'this'
}
const removeProperties = ['remove']

frontformatter('src', addProperties, removeProperties)

Acknowledgments

Thanks to Jon Schlinkert for gray-matter

Licence

Licensed under MIT.

Readme

Keywords

Package Sidebar

Install

npm i frontformatter

Weekly Downloads

3

Version

1.1.0

License

MIT

Unpacked Size

9.31 kB

Total Files

17

Last publish

Collaborators

  • patrickheneise