system_assignation/node_modules/filenamify/filenamify-path.js

11 lines
299 B
JavaScript
Raw Normal View History

2022-03-24 09:22:39 -04:00
'use strict';
const path = require('path');
const filenamify = require('./filenamify');
const filenamifyPath = (filePath, options) => {
filePath = path.resolve(filePath);
return path.join(path.dirname(filePath), filenamify(path.basename(filePath), options));
};
module.exports = filenamifyPath;