string-template
string-template copied to clipboard
Added an option to throw an error on no matching substitutions.
Added an options argument to exported function which can enable the functionality of throwing an error if template pattern doesn't match any of the passed argument strings.
Default behavior is as before i.e. no matching substitutions are replaced with empty strings.