UNPKG

yarle-evernote-to-md

Version:

Yet Another Rope Ladder from Evernote

16 lines 793 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.saveMdFile = void 0; const runtime_properties_1 = require("./../runtime-properties"); const file_utils_1 = require("./file-utils"); const folder_utils_1 = require("./folder-utils"); const loggerInfo_1 = require("./loggerInfo"); const saveMdFile = (noteContent, note, pureNote) => { const absMdFilePath = (0, folder_utils_1.getMdFilePath)(pureNote); const runtimeProps = runtime_properties_1.RuntimePropertiesSingleton.getInstance(); runtimeProps.setCurrentNotePath(absMdFilePath); (0, file_utils_1.writeFile)(absMdFilePath, noteContent, pureNote); (0, loggerInfo_1.loggerInfo)(`Note saved to ${absMdFilePath}`); }; exports.saveMdFile = saveMdFile; //# sourceMappingURL=save-md-file.js.map