UNPKG

libmodulor

Version:

A TypeScript library to create platform-agnostic applications

10 lines (9 loc) 236 B
export function fileImportName(name) { if (name.endsWith('.ts')) { return name.replaceAll('.ts', '.js'); } return `${name}.js`; } export function successMessage(item) { return `${item} created successfully !`; }