UNPKG

piral-cli

Version:

The standard CLI for creating and building a Piral instance or a Pilet.

16 lines 376 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.normalizePublicUrl = normalizePublicUrl; function normalizePublicUrl(url) { if (!url) { return '/'; } if (!url.endsWith('/')) { url = `${url}/`; } if (!url.startsWith('/')) { url = `/${url}`; } return url; } //# sourceMappingURL=url.js.map