Can I use qsModule outside of instantsearch.routers.history

If you use the instantsearch.routers.history the qsModule is expode and you can use it to encode/decode URI’s. Is there a possibilty to use this module outside of the instantsearch.routers.history?
I don’t want to include the module myself as it is alreay somewhere in the algolia script that has been loaded.

The reason I want to use this module is to link to a prefilterd search page. But to do this the URL needs to be exactly encoded as it is when you filter on the search page.

Are you talking about this library? qs - npm

You can use this module outside of instantsearch because instantsearch itself depends on this library for parsing the querystring and converting it back to string from query object.