diff options
Diffstat (limited to 'tools/eslint/node_modules/replace-ext/index.js')
-rw-r--r-- | tools/eslint/node_modules/replace-ext/index.js | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tools/eslint/node_modules/replace-ext/index.js b/tools/eslint/node_modules/replace-ext/index.js deleted file mode 100644 index 7cb7789e28..0000000000 --- a/tools/eslint/node_modules/replace-ext/index.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict'; - -var path = require('path'); - -function replaceExt(npath, ext) { - if (typeof npath !== 'string') { - return npath; - } - - if (npath.length === 0) { - return npath; - } - - var nFileName = path.basename(npath, path.extname(npath)) + ext; - return path.join(path.dirname(npath), nFileName); -} - -module.exports = replaceExt; |