Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

metalsmith-build-date

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metalsmith-build-date

A Metalsmith plugin that adds a build date to the metadata.

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
82
increased by82.22%
Maintainers
3
Weekly downloads
 
Created
Source

metalsmith-build-date

A Metalsmith plugin that adds a build date to the metadata. Useful for atom.xml or other feeds.

Installation

$ npm install metalsmith-build-date

Usage

var date = require('metalsmith-build-date');

metalsmith.use(date());

That will add a global date property to your metadata, so you can use it in a template like:

<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <updated>{{ date }}</updated>

Options

key

Change the key from the default value of 'date' to whatever you want. Useful if you already have a date in your frontmatter for the file, or if you want to be more specific about what the date represents.

Example:

metalsmith.use(date({ key: 'dateBuilt' ));

CLI Usage

Install via npm and then add the metalsmith-build-date key to your metalsmith.json:

{
  "plugins": {
    "metalsmith-build-date": true
  }
}

License

MIT

FAQs

Package last updated on 18 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc