mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-06-05 15:09:59 +09:00
17 lines
372 B
JavaScript
17 lines
372 B
JavaScript
const wizard = require('./src/wizard');
|
|
const parser = require('./src/parser');
|
|
const writer = require('./src/writer');
|
|
|
|
async function init() {
|
|
try {
|
|
config = wizard.getConfig();
|
|
let posts = await parser.parseFilePromise(config)
|
|
writer.writeFiles(posts, config);
|
|
} catch (ex) {
|
|
// appease the UnhandledPromiseRejectionWarning
|
|
console.error(ex);
|
|
}
|
|
}
|
|
|
|
init();
|