UNPKG

enex-dump

Version:

Dump the content of .enex files, preserving attachments, some metadata and optionally converting notes to Markdown.

33 lines (18 loc) 354 B
/* IMPORT */ const yaml = require ( 'js-yaml' ); /* MATTER */ const Matter = { options: { flowLevel: 1, indent: 2, lineWidth: 8000 }, parse ( str ) { return yaml.safeLoad ( str, Matter.options ); }, stringify ( obj ) { return yaml.safeDump ( obj, Matter.options ); } }; /* EXPORT */ module.exports = Matter;