index.js
function extract(npmignore) {
  if (npmignore == null) {
    throw new Error('npmignore expects a string.');
  }

  var lines = split(npmignore);
  var len = lines.length;
  var npmignored = false;
  var git = [];
  var npm = [];
  var i = 0;

  while (i < len) {
    var line = lines[i++];
    if (re.test(line)) {
      npmignored = true;
    }

    if (npmignored) {
      npm.push(line);
    } else {
      git.push(line);
    }
  }

  return npm;
}
function extract(npmignore) {
  if (npmignore == null) {
    throw new Error('npmignore expects a string.');
  }

  var lines = split(npmignore);
  var len = lines.length;
  var npmignored = false;
  var git = [];
  var npm = [];
  var i = 0;

  while (i < len) {
    var line = lines[i++];
    if (re.test(line)) {
      npmignored = true;
    }

    if (npmignored) {
      npm.push(line);
    } else {
      git.push(line);
    }
  }

  return npm;
}
function extract ( npmignore ) { if ( npmignore == null ) { throw new Error ( 'npmignore expects a string.' ) ; } var lines = split ( npmignore ) ; var len = lines . length ; var npmignored = false ; var git = [ ] ; var npm = [ ] ; var i = 0 ; while ( i < len ) { var line = lines [ i ++ ] ; if ( re . test ( line ) ) { npmignored = true ; } if ( npmignored ) { npm . push ( line ) ; } else { git . push ( line ) ; } } return npm ; }
Extract relevant lines from `.npmignore`

@param  {String} `npmignore` string
@return {Array} Array of lines
Extract relevant lines from . npmignore