UNPKG

alexpogor-js-footer

Version:

This module allows for a dynamic footer to be generated for JS applications with an updated year and name.

15 lines (12 loc) 308 B
"use strict"; var moment = require("moment"); /** * Returns a string element with a footer and updating year * @param {string} name * @return {string} */ exports.footer = function(name) { return ( "Copyright " + moment().format("YYYY") + " " + name + " All rights reserved" ); };