@glandjs/common
Version:
Glands is a web framework for Node.js (@common)
10 lines (9 loc) • 417 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.normalizePath = void 0;
exports.isDynamicModule = isDynamicModule;
const normalizePath = (path) => (path ? (path.startsWith('/') ? ('/' + path.replace(/\/+$/, '')).replace(/\/+/g, '/') : '/' + path.replace(/\/+$/, '')) : '/');
exports.normalizePath = normalizePath;
function isDynamicModule(module) {
return !!module?.module;
}