add optional `opts` object
Merge pull request #1 from Nami-Doc/master

add optional `opts` object