Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit 292878d

Browse files
committed
merge default options with passed in options
1 parent 739383a commit 292878d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var defaultOpts = {
77
}
88

99
module.exports = function exceljsStream(opts) {
10-
opts = opts || defaultOpts
10+
opts = Object.assign(defaultOpts, opts)
1111
var input = through()
1212
var second = through({ objectMode: opts.objectMode })
1313
var workbook = new Excel.Workbook()

0 commit comments

Comments
 (0)