Neurophysiologically Pseudoscientific Manatee
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

metalsmith-moment

1.1.0 • Public • Published

metalsmith-moment

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

Build Status DependencyStatus

Installation

$ npm install metalsmith-moment

JavaScript usage

var 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

1

version

1.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability