metalsmith-timestamp [](https://travis-ci.org/danielhusar/metalsmith-timestamp)

August 2, 2015 · View on GitHub

Add timestamp to html files

Installation

npm install --save metalsmith-timestamp

Getting Started

If you haven't checked out Metalsmith before, head over to their website and check out the documentation.

CLI Usage

If you are using the command-line version of Metalsmith, you can install via npm, and then add the metalsmith-timestamp key to your metalsmith.json file:

{
  "plugins": {
    "metalsmith-timestamp": {}
  }
}

JavaScript API

If you are using the JS Api for Metalsmith, then you can require the module and add it to your .use() directives:

var timestamp = require('metalsmith-timestamp');

metalsmith.use(timestamp(options));

Options

format

Type: String
Default: '%d %B %Y %H:%M:%S'

strftime date time format

License

MIT © Daniel Husar