Files
wordpress-export-to-markdown/index.js
T
2019-12-21 15:57:25 -05:00

17 lines
385 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)
await writer.writeFilesPromise(posts, config);
} catch (ex) {
// appease the UnhandledPromiseRejectionWarning
console.error(ex);
}
}
init();