zephyr-edge-contract
Version:
Edge contract for Zephyr
16 lines (15 loc) • 435 B
JavaScript
function replacer(str) {
return str.replace(/[^a-zA-Z0-9-]/gi, '-');
}
function createApplicationUid(options) {
const git_org = replacer(options.org);
const git_repo = replacer(options.project);
const app_name = replacer(options.name);
return [
app_name,
git_repo,
git_org
].join('.').toLowerCase();
}
export { createApplicationUid };
//# sourceMappingURL=create-application-uid.mjs.map