UNPKG

@mdfriday/foundry

Version:

The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.

35 lines 1.02 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Service = void 0; exports.newService = newService; const filevitural_1 = require("../vo/filevitural"); /** * Service class for filesystem entity operations * TypeScript equivalent of Go's Service struct */ class Service { /** * Creates a new FileMetaInfo with the given filename * TypeScript equivalent of Go's NewFileMetaInfo method */ newFileMetaInfo(filename) { return (0, filevitural_1.newFileInfoWithName)(filename); } /** * Creates a new FileMetaInfo with the given content * TypeScript equivalent of Go's NewFileMetaInfoWithContent method */ newFileMetaInfoWithContent(content) { return (0, filevitural_1.newFileInfoWithContent)(content); } } exports.Service = Service; /** * Creates a new Service instance */ function newService() { return new Service(); } // Default export for convenience exports.default = Service; //# sourceMappingURL=service.js.map