Files
wordpress-export-to-markdown/index.js
T
2019-12-21 16:07:52 -05:00

12 lines
308 B
JavaScript

const wizard = require('./src/wizard');
const parser = require('./src/parser');
const writer = require('./src/writer');
(async () => {
config = wizard.getConfig();
let posts = await parser.parseFilePromise(config)
await writer.writeFilesPromise(posts, config);
})().catch(ex => {
console.error(ex);
});