A utility for parsing and manipulating documents with Front Matter. Get the fields, values for any collection of documents. Bulk update, delete, or rename fields.
This utility can be used as a Command Line Interface, or as an import in your scripts.
It has two primary uses:
- Parsing one or many files to discover the content model
- Updating the content model of one or many files
This is done through the following commands:
fields
: finds all fields in specified filesvalues
: finds all values for specified fields in specified filesupdate
: update the value for specified field in specified filesrename
: update the name of specified field in specified filesdrop
: delete the specified fields from the specified filesconvert
: convert any field to an array
Run the following command:
npm install -g front-matter-manipulator
npm install front-matter-manipulator --save-dev
Front Matter Manipulator can be used on the command line to perform operations on fields.
See the documentation for each action:
Front Matter Manipulator can be used on in javascript files to perform advanced parsing or manipulation of fields.
See the documentation for each action: