function file2obj(file) {
		if(!fs.existsSync(file)) {
			return {};
		}
		try {
			var buffer = JSON.parse(fs.readFileSync(file), {'encoding':'utf8'});
			if(!(buffer && (typeof buffer === 'object'))) {
				throw new TypeError('Failed to parse file as an object: ' + file);
			}
			return buffer;
		} catch(e) {
			throw new TypeError("Failed to read file " + file + ": " + e);
		}
	}
function file2obj(file) {
		if(!fs.existsSync(file)) {
			return {};
		}
		try {
			var buffer = JSON.parse(fs.readFileSync(file), {'encoding':'utf8'});
			if(!(buffer && (typeof buffer === 'object'))) {
				throw new TypeError('Failed to parse file as an object: ' + file);
			}
			return buffer;
		} catch(e) {
			throw new TypeError("Failed to read file " + file + ": " + e);
		}
	}
function file2obj ( file ) { if ( ! fs . existsSync ( file ) ) { return { } ; } try { var buffer = JSON . parse ( fs . readFileSync ( file ) , { 'encoding' : 'utf8' } ) ; if ( ! ( buffer && ( typeof buffer === 'object' ) ) ) { throw new TypeError ( 'Failed to parse file as an object: ' + file ) ; } return buffer ; } catch ( e ) { throw new TypeError ( "Failed to read file " + file + ": " + e ) ; } }
/* Append config file into config object
/ * Append config file into config object