This is a utility I've used in a few projects already so the code is quite reliable.
Finally had some time to package it, so here it is.
It's only been tested with Vue 2.x
Documentation and live demo:
Get the source at:
If you like the package, please consider sponsoring: