You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

filenamify-path.js 299B

12345678910
  1. 'use strict';
  2. const path = require('path');
  3. const filenamify = require('./filenamify');
  4. const filenamifyPath = (filePath, options) => {
  5. filePath = path.resolve(filePath);
  6. return path.join(path.dirname(filePath), filenamify(path.basename(filePath), options));
  7. };
  8. module.exports = filenamifyPath;