matter-now

4.0.0 • Public • Published

matter-now

npm package version Build status Dependencies status

Append the current date to the YAML front matter of Markdown files. Useful for adding the published date to static content files like blog posts.

Demo

Installation

npm install -g matter-now

Usage

$ matter-now
Usage: matter-now [options] <file...>

Options:
  -a, --attr <attribute>  front matter attribute (default: "date")
  -f, --format <format>   date-fns date format (default: "yyyy-MM-dd'T'HH:mm:ssxxx")
  -v, --version           output the version number
  -h, --help              display help for command

matter-now can also be used with lint-staged to append dates to git staged Markdown files:

{
  "*.md": "matter-now"
}

See it in action here.

Package Sidebar

Install

npm i matter-now

Weekly Downloads

2

Version

4.0.0

License

MIT

Unpacked Size

4.66 kB

Total Files

5

Last publish

Collaborators

  • rbardini