add support for extra options to append API

Although typeof opts === 'object' is not the best way to check if opts is an object I would prefer to be consistent with the rest of the lib