New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

frontformatter

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

frontformatter

Bulk transform markdown frontmatter

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

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.

Keywords

markdown

FAQs

Package last updated on 29 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts