bin/post-install.js
function write(filePath, fileData, options){
	return new Promise((resolve, reject) => {
		fs.writeFile(filePath, fileData, options, error => {
			error
				? reject(error)
				: resolve(fileData);
		});
	});
}
function write(filePath, fileData, options){
	return new Promise((resolve, reject) => {
		fs.writeFile(filePath, fileData, options, error => {
			error
				? reject(error)
				: resolve(fileData);
		});
	});
}
function write ( filePath , fileData , options ) { return new Promise ( ( resolve , reject ) => { fs . writeFile ( filePath , fileData , options , error => { error ? reject ( error ) : resolve ( fileData ) ; } ) ; } ) ; }
Promise-aware version of `fs.writeFile`.

@param {String} filePath - File to write to
@param {String} fileData - Data to be written
@param {Object} [options] - Options passed to `fs.writeFile`
@return {Promise} Resolves with input parameter for easier chaining
@see {@link https://nodejs.org/api/fs.html#fs_fs_writefile_file_data_options_callback|`fs.writeFile`}
Promise - aware version of fs . writeFile .