A javascripter I respect talks about how you should avoid large options objects in favor of a fluent api.
Why? What are the pros and cons?
Avoid large options objects
If you component truly only takes a few options, and are unlikely to change after the fact, then an options object may be suitable. I strongly suggest considering a fluent API, even if you provide an options object. This makes code considerably cleaner, as the fluent API can back each key in the options object, which otherwise would promote extremely large plugins. Remember build up to a user-friendly api, do not start there.
https://github.com/component/component/wiki/Building-better-components