2.0.2 • Published 1 year ago

@lunaticmuch/front-matter-manipulator v2.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Front Matter Manipulator

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.

Getting Started

This utility can be used as a Command Line Interface, or as an import in your scripts. The node package is now pure ESM. Consider this when using your package because you might need a suitable version of typescript or node.

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 files
  • values: finds all values for specified fields in specified files
  • update: update the value for specified field in specified files
  • rename: update the name of specified field in specified files
  • drop: delete the specified fields from the specified files
  • convert: convert any field to an array

Installation

Install CLI

Run the following command:

npm install -g @lunaticmuch/front-matter-manipulator

Install in current directory for use in scripts

npm install @lunaticmuch/front-matter-manipulator --save-dev

CLI (Command Line Interface)

Front Matter Manipulator can be used on the command line to perform operations on fields.

See the documentation for each action:

Usage in node scripts/packages

Front Matter Manipulator can be used on in javascript files to perform advanced parsing or manipulation of fields.

See the documentation for each action:

Original Author

This package has been originally developed by Chris D. Macrae. As no activity has been happening recentely and PRs are not getting reviewed and merged, I am resharing it, in the quest to maintain it working and updated.

1.10.2

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0-alpha.2

2 years ago

2.0.0-alpha.1

2 years ago

1.10.1

2 years ago

1.10.0

2 years ago

1.9.0

2 years ago

1.8.0

2 years ago

1.7.0

2 years ago

1.6.0

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago