enex-dump
Version:
Dump the content of .enex files, preserving attachments, some metadata and optionally converting notes to Markdown.
28 lines (17 loc) • 433 B
JavaScript
const path = require ( 'path' );
const EnexDump = require ( '../src/index' );
const src = path.join ( __dirname, 'test.enex' );
const dst = path.join ( __dirname, 'benchmark_output' );
async function run () {
console.time ( 'benchmark' );
for ( let i = 0, l = 1000; i < l; i++ ) {
await EnexDump ({
path: {
src: [src],
dst: dst
}
});
}
console.timeEnd ( 'benchmark' );
}
run ();