docs: function pkgdir() {
  	var parts,
  		len,
  		str,
  		i;
  
  	parts = cwd().split( path.sep );
  	len = parts.length;
  	for ( i = 0; i < len; i++ ) {
  		str = parts.join( path.sep );
  		if ( exists( path.join( str, 'package.json' ) ) ) {
  			return str;
  		}
  		parts.pop();
  	}
  	return null;
  }