lib/bundle-file.js
function BundleFile() {

  var location = getTempFileName('.browserify.js');

  function write(content) {
    fs.writeFileSync(location, content);
  }

  function exists() {
    return fs.existsSync(location);
  }

  function remove() {
    if (exists()) {
      fs.unlinkSync(location);
    }
  }

  function touch() {
    if (!exists()) {
      write('');
    }
  }


  // API

  this.touch = touch;

  this.update = write;
  this.remove = remove;

  this.location = location;
}
function BundleFile() {

  var location = getTempFileName('.browserify.js');

  function write(content) {
    fs.writeFileSync(location, content);
  }

  function exists() {
    return fs.existsSync(location);
  }

  function remove() {
    if (exists()) {
      fs.unlinkSync(location);
    }
  }

  function touch() {
    if (!exists()) {
      write('');
    }
  }


  // API

  this.touch = touch;

  this.update = write;
  this.remove = remove;

  this.location = location;
}
function BundleFile ( ) { var location = getTempFileName ( '.browserify.js' ) ; function write ( content ) { fs . writeFileSync ( location , content ) ; } function exists ( ) { return fs . existsSync ( location ) ; } function remove ( ) { if ( exists ( ) ) { fs . unlinkSync ( location ) ; } } function touch ( ) { if ( ! exists ( ) ) { write ( '' ) ; } } // API this . touch = touch ; this . update = write ; this . remove = remove ; this . location = location ; }
A instance of a bundle file
A instance of a bundle file