mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-06-05 15:09:59 +09:00
13 lines
350 B
JavaScript
13 lines
350 B
JavaScript
const wizard = require('./src/wizard');
|
|
const parser = require('./src/parser');
|
|
const writer = require('./src/writer');
|
|
|
|
(async () => {
|
|
let config = await wizard.getConfig();
|
|
let posts = await parser.parseFilePromise(config)
|
|
await writer.writeFilesPromise(posts, config);
|
|
wizard.displayCommand(config);
|
|
})().catch(ex => {
|
|
console.error(ex);
|
|
});
|