lib/init.js
function(packageName) {
    var oldPackages, newPackages;

    oldPackages = fs.readFileSync(this.packages, {encoding: 'utf-8'});
    newPackages = oldPackages.replace(packageName + '\n', '');
    fs.writeFileSync(this.packages, newPackages);
  }
function(packageName) {
    var oldPackages, newPackages;

    oldPackages = fs.readFileSync(this.packages, {encoding: 'utf-8'});
    newPackages = oldPackages.replace(packageName + '\n', '');
    fs.writeFileSync(this.packages, newPackages);
  }
function ( packageName ) { var oldPackages , newPackages ; oldPackages = fs . readFileSync ( this . packages , { encoding : 'utf-8' } ) ; newPackages = oldPackages . replace ( packageName + '\n' , '' ) ; fs . writeFileSync ( this . packages , newPackages ) ; }
Private: Look at packages file and remove package if present. Stream packages file, replace, then overwrite original file.  packageName - The {String} name of the package
Private : Look at packages file and remove package if present . Stream packages file replace then overwrite original file . packageName - The { String } name of the package