rename-extension
A function that changes the the extension of a given filename or path.
Install
npm install rename-extension
Usage
const renameExtension = // a/b/c // a/b/c.css // a/b/c.min.css // a/b/.npmrc // a/b/.npmrc.json
API
Parameters
filePath
{String}
Path to a file.newExt
{String}
New extension for the file.
Returns
filePath
{String}
Path ending with the new extension.