UNPKG

ad-footer-js

Version:

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

13 lines (10 loc) 300 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"; };