Skip to content
Add timestamp to html files
JavaScript HTML
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
fixtures/html/src
.editorconfig
.gitattributes
.gitignore
.jshintrc
.travis.yml
Readme.md
index.js
license
package.json
test.js

Readme.md

metalsmith-timestamp Build Status

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

You can’t perform that action at this time.