vhs-utils serves two purposes:
npm install --save @videojs/vhs-utils
All utility functions are published under dist and can be required/imported like so:
es import using es dist
import resolveUrl from '@videojs/vhs-utils/es/resolve-url';
cjs import using cjs dist
const resolveUrl = require('@videojs/vhs-utils/cjs/resolve-url');
depricated cjs dist
const resolveUrl = require('@videojs/vhs-utils/dist/resolve-url');