Closed a7i closed 3 years ago
It feels strange to have arguments behind the callback argument. Could you change your merge request to provide a new method with e.g. a options Object which includes the tmpOptions, like this:
exports.convertWithOptions = (document, format, filter, options, callback) => {
and in exports.convert you call it with some default options?
You are free to choose a name, convertWithOptions
sounds like a objective-c method, not a ecmascript method :)
I agree @elwerene , did not want to break backwards compatibility. I will apply the changes per your suggestion.
It will not break if you keep the signature of exports.convert
;)
@a7i Please put the tmpOptions
into an options
object so we have some space where we can introduce new options in the future!
looks good to me!
I published a new version 1.2.0. Thx @a7i
Fixes #34