Matis 0.1.0

Multi-level Asynchrounous Tools Interconnection System.

tools.ChangeExtension

An extension is the string after the last occurence of a dot (.) in a path. This tool replaces extensions with other one.

Options

Object describing which changes have to be made. For instance {less: 'css', md: 'html'} means that the tool must replace extensions .less with .css and .md with .html.

Input

Output

Example

var change = Matis.tools.ChangeExtension({less: 'css', md: 'html'});