mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-07-11 18:56:14 +09:00
12 lines
318 B
JavaScript
12 lines
318 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);
|
|
})().catch(ex => {
|
|
console.error(ex);
|
|
});
|