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

metalsmith-timestamp

1.1.1 • Public • Published

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

install

npm i metalsmith-timestamp

Downloadsweekly downloads

2

version

1.1.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability