Skip to content
Metalsmith plugin to add various build infos to the metadata.
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.
src
test
.editorconfig
.gitignore
.travis.yml
LICENSE
README.md
package.json

README.md

metalsmith-build-info

npm Build Status

Metalsmith plugin to add various build infos to the metadata.

Installation

npm install metalsmith-build-info --save-dev

Usage

var buildinfo = require("metalsmith-build-info");

Metalsmith(__dirname)
  /* ... */
  .use(buildinfo())
  /* ... */

The plugin will set the following metadata:

  • buildinfo.date: The date at which the site was generated.
  • buildinfo.user: The user who generated the site (i.e. travis).
  • buildinfo.nodejs: The version of Node.js used to generate the site (i.e. v6.9.2).
  • buildinfo.arch: String identifying the processor architecture that the Node.js is currently running on (i.e. x64).
  • buildinfo.platform: String identifying the operating system platform on which the Node.js process is running on (i.e. linux).
  • buildinfo.version: The version of Metalsmith used to generate the site (i.e. 2.3.0)

License

MIT

You can’t perform that action at this time.