select.js
// git fixes line endings, but npm doesn't.
git fixes line endings, but npm doesn't.
git fixes line endings but npm doesn ' t .
function cleanLineEndings() {
  var files = Object.keys(pkgFiles).map(function(f) {
    return 'package/' + f
  }).concat(Object.keys(repoFiles).map(function(f) {
    return 'repo/' + f
  }))
  debug('cleanLineEndings')
  files.forEach(function (f) {
    var s = fs.readFileSync(f, 'utf8')
    fs.writeFileSync(f, s.replace(/\r/g, ''), 'utf8')
  })
  testCleanFiles()
}
function cleanLineEndings ( ) { var files = Object . keys ( pkgFiles ) . map ( function ( f ) { return 'package/' + f } ) . concat ( Object . keys ( repoFiles ) . map ( function ( f ) { return 'repo/' + f } ) ) debug ( 'cleanLineEndings' ) files . forEach ( function ( f ) { var s = fs . readFileSync ( f , 'utf8' ) fs . writeFileSync ( f , s . replace ( / \r / g , '' ) , 'utf8' ) } ) testCleanFiles ( ) }
git fixes line endings, but npm doesn't.
git fixes line endings but npm doesn ' t .