If the current way to manage configuration logic if the options grow in number the code would be larger and you are on risk of breaking the Single Responsibility Principle. Also it makes less obvious the purpose of the function.
Proposal
Make configuration lines move to another function. The logic can be in settings function but I suggest a new function instead.
Problem
This kind of code is adequate for separate into another function:
https://github.com/jalasem/templatestringparser/blob/29fec424a86ee72110c7f98629989b15df8e9251/index.js#L19-L24
If the current way to manage configuration logic if the options grow in number the code would be larger and you are on risk of breaking the Single Responsibility Principle. Also it makes less obvious the purpose of the function.
Proposal
Make configuration lines move to another function. The logic can be in
settings
function but I suggest a new function instead.