This repository has been archived on 2020-11-02. You can view files and clone it, but cannot push or open issues or pull requests.
TripSit_Suite/node_modules/filenamify/filenamify-path.js
2020-11-01 22:46:04 +00:00

11 lines
299 B
JavaScript

'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;