UNPKG

typeorm-codebase-sync

Version:

Automatically update your codebase to add migrations, entities and subscribers to your `data-source.ts` file

7 lines 265 B
import path from "path"; export function filePathToImportName(filePath) { return path.basename(filePath, path.extname(filePath)) .replace(/[^A-Z|a-z|0-9]/g, "") .replace(/^([0-9]+)(.*)$/, "$2"); } //# sourceMappingURL=filePathToImportName.js.map