UNPKG

east

Version:

node.js database migration tool for mongodb, sqlite, postgres, mysql, couchbase

10 lines (8 loc) 259 B
const pathUtils = require('path'); module.exports = function getMigrationNameByPath( path, migrationFileType = 'executable' ) { const {extension} = this._getMigrationFileTypeParams(migrationFileType); return pathUtils.basename(path, `.${extension}`); };