install.js
function fixGitIgnore(ignorePattern) {
  var fileString = '', ignoreFile = '../../../.gitignore';
  if (fs.existsSync(ignoreFile)) {
    fileString = fs.readFileSync(ignoreFile).toString();
  } 

  if (fileString.indexOf(ignorePattern) === -1) {
    // has not been previously modified
    var fix = fileString +
      '\n' +
      ignorePattern;


    fs.writeFileSync(ignoreFile, fix, 'utf8');
  }
}
function fixGitIgnore(ignorePattern) {
  var fileString = '', ignoreFile = '../../../.gitignore';
  if (fs.existsSync(ignoreFile)) {
    fileString = fs.readFileSync(ignoreFile).toString();
  } 

  if (fileString.indexOf(ignorePattern) === -1) {
    // has not been previously modified
    var fix = fileString +
      '\n' +
      ignorePattern;


    fs.writeFileSync(ignoreFile, fix, 'utf8');
  }
}
Fix .gitignore
@param path