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