Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}, function(er, email) {
if (er) {
console.log();
process.exit();
}
resumeJson.basics.name = name;
resumeJson.basics.email = email;
fs.writeFileSync(process.cwd() + '/resume.json', JSON.stringify(resumeJson, undefined, 2));
console.log('\nYour resume.json has been created!'.green);
console.log('');
console.log('To generate a formatted .html .md .txt or .pdf resume from your resume.json');
console.log('type: `resume export [someFileName]` including file extension eg: `resume export myresume.html`');
console.log('\nYou can optionally specify an available theme for html and pdf resumes using the --theme flag.');
console.log('Example: `resume export myresume.pdf --theme flat`');
console.log('Or simply type: `resume export` and follow the prompts.');
console.log('');
process.exit();
callback(true);
});
});