summaryrefslogtreecommitdiff
path: root/desktop/node_modules/filenamify/filenamify-path.js
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/node_modules/filenamify/filenamify-path.js')
-rw-r--r--desktop/node_modules/filenamify/filenamify-path.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/desktop/node_modules/filenamify/filenamify-path.js b/desktop/node_modules/filenamify/filenamify-path.js
new file mode 100644
index 0000000..359c119
--- /dev/null
+++ b/desktop/node_modules/filenamify/filenamify-path.js
@@ -0,0 +1,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;