lib/auto-generate.js
function autoStartLine(name) {
    var pre    = new Array(Math.floor((60 - name.length) / 2) - 3).join('-');
    var post   = new Array(60 - pre.length - name.length).join('-');
    return signature + 'S' + pre + ' Auto Start: ' + name + ' ' + post + '\n';
}
function autoStartLine(name) {
    var pre    = new Array(Math.floor((60 - name.length) / 2) - 3).join('-');
    var post   = new Array(60 - pre.length - name.length).join('-');
    return signature + 'S' + pre + ' Auto Start: ' + name + ' ' + post + '\n';
}
function autoStartLine ( name ) { var pre = new Array ( Math . floor ( ( 60 - name . length ) / 2 ) - 3 ) . join ( '-' ) ; var post = new Array ( 60 - pre . length - name . length ) . join ( '-' ) ; return signature + 'S' + pre + ' Auto Start: ' + name + ' ' + post + '\n' ; }
Object which contains detailed info of an auto generated part.
@private
@typedef {Object} partInfo
@property {string} startLine - Start line (opening tag / marker) of auto generated part.
@property {string} warningLine - Warning message line of auto generated part.
@property {string} content - Auto generated content.
@property {string} md5Line - Line which contains md5 of the content.
@property {string} oldDigest - MD5 which is written in the file.
@property {string} newDigest - MD5 calculated freshly for the content.
@property {boolean} isChanged - Indicates if part is modified by comparing MD5 written in file with new calculated MD5
@property {string} endLine - End line (closing tag / marker) of auto generated part.
 
Generates and returns start line (opening tag / marker) of auto generated part.
@private
@param {string} name - name of the auto generated part
@returns {string} - first line of the auto generated part.
Object which contains detailed info of an auto generated part .