Skip to content

danielhusar/metalsmith-timestamp

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Add timestamp to html files

Resources

License

Stars

Watchers

Forks

Packages

No packages published