UNPKG

docxtemplater

Version:

Generate docx, pptx, and xlsx from templates (Word, Powerpoint and Excel documents), from Node.js, the Browser and the command line

14 lines (13 loc) 357 B
"use strict"; function getResolvedId(part, options) { if (part.lIndex == null) { return null; } var path = options.scopeManager.scopePathItem; if (part.parentPart) { path = path.slice(0, path.length - 1); } var res = options.filePath + "@" + part.lIndex.toString() + "-" + path.join("-"); return res; } module.exports = getResolvedId;