{"size": 339, "ext": "js", "max_stars_repo_path": "lib/write-file.js", "max_stars_repo_name": "kahlil/blog-cli", "max_stars_repo_stars_event_min_datetime": "2019-01-18T13:21:58.000Z", "max_stars_repo_stars_event_max_datetime": "2021-06-10T23:53:13.000Z", "max_issues_repo_path": "lib/write-file.js", "max_issues_repo_name": "jackbaty/blog-cli", "max_issues_repo_issues_event_min_datetime": "2019-04-24T16:07:44.000Z", "max_issues_repo_issues_event_max_datetime": "2019-05-06T21:38:04.000Z", "max_forks_repo_path": "lib/write-file.js", "max_forks_repo_name": "kahlil/blog-cli", "max_forks_repo_forks_event_min_datetime": "2019-02-10T19:04:17.000Z", "max_forks_repo_forks_event_max_datetime": "2019-04-24T15:29:07.000Z"}
{"max_stars_count": 12, "max_issues_count": 2, "max_forks_count": 2, "avg_line_length": 16.95, "max_line_length": 47, "alphanum_fraction": 0.6460176991}
'use strict';

const {
	promisify
} = require('util');
const fs = require('fs');
const template = require('./template');

const writeFileAsync = promisify(fs.writeFile);

module.exports = async filePath => {
	try {
		await writeFileAsync(filePath, template, {
			encoding: 'utf8'
		});
	} catch (err) {
		console.log('ERROR:', err);
	}
};
