js-devcamp-footer-kedav

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

This should be used in the folllowing manner

install with the command:

npm i devcamp-js-footer-kedav

Add to a Javascript Project using the following code:

import { footer } from 'devcamp-js-footer-kedav';
footer('some name');

'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"; };

HomePage

https://github.com/doobmods/devcamp-js-footer-kedav#readme

Repository

git+https://github.com/doobmods/devcamp-js-footer-kedav.git


公众号

欢迎 JavaScript 爱好者