5.0.0 • Published 8 months ago

metalsmith-moment v5.0.0

Weekly downloads
12
License
MIT
Repository
github
Last release
8 months ago

metalsmith-moment

A Metalsmith plugin to convert a set of file metadata to moment.js objects.

Build status

Installation

This plugin requires Node.js 20 or later

$ npm install metalsmith-moment

JavaScript usage

const msMoment = require("metalsmith-moment");

metalsmith.use(msMoment(["published", "modified"]));

This will convert the published and modified properties to moment.js objects by applying moment.js parsing rules. Any falsy property is just ignored.

CLI usage

{
  "plugins": {
    "metalsmith-moment": ["published", "modified"]
  }
}

License

MIT

5.0.0

8 months ago

4.0.0

2 years ago

3.0.0

3 years ago

2.2.0

3 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.1.0

7 years ago

1.0.0

10 years ago