UNPKG

notion-page-to-html

Version:

It converts public notion pages to html from url

16 lines 600 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.IdNormalizer = void 0; var IdNormalizer = /** @class */ (function () { function IdNormalizer() { } IdNormalizer.prototype.normalizeId = function (id) { var isItAlreadyNormalized = id.length === 36; return isItAlreadyNormalized ? id : id.substr(0, 8) + "-" + id.substr(8, 4) + "-" + id.substr(12, 4) + "-" + id.substr(16, 4) + "-" + id.substr(20); }; return IdNormalizer; }()); exports.IdNormalizer = IdNormalizer; //# sourceMappingURL=id-normalizer.js.map