update-banner 
Add or update a banner in a string.
Install with npm
npm i update-banner --save
Usage
If the string has a banner already, it will be replaced with an updated one. If, the string does not have a banner one will be added.
var banner = require('update-banner');
var str = fs.readFileSync('index.js', 'utf8');
banner(str);
Pass a custom template and/or data:
var ctx = 'Copyright (c) 2015, Jon Schlinkert.';
banner('/* <%= copyright %> */\n', {copyright: ctx});
Run tests
Install dev dependencies:
npm i -d && npm test
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Author
Jon Schlinkert
License
Copyright (c) 2015-2015 Jon Schlinkert
Released under the MIT license
This file was generated by verb on February 20, 2015.