summaryrefslogtreecommitdiff
path: root/desktop/node_modules/filenamify/filenamify-path.js
blob: 359c11931a707ef655312134acf96ecba93aa04a (plain)
1
2
3
4
5
6
7
8
9
10
'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;