Node Package Manager

    metalsmith-moment

    3.0.0 • Public • Published

    metalsmith-moment

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

    Build status

    Installation

    $ 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

    Install

    npm i metalsmith-moment

    DownloadsWeekly Downloads

    41

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    5.26 kB

    Total Files

    8

    Last publish

    Collaborators

    • dpobel