metalsmith-timestamp ![Build Status](https://camo.githubusercontent.com/6f1022baa72cde2457ff70cfed352a17fc48fad491d3552844a423c54ef8dd6b/68747470733a2f2f7472617669732d63692e6f72672f64616e69656c68757361722f6d6574616c736d6974682d74696d657374616d702e7376673f6272616e63683d6d6173746572)
Add timestamp to html files
npm install --save metalsmith-timestamp
If you haven't checked out Metalsmith before, head over to their website and check out the documentation.
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": {}
}
}
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));
Type: String
Default: '%d %B %Y %H:%M:%S'
strftime date time format
MIT © Daniel Husar