# vhs-utils **Repository Path**: mirrors_videojs/vhs-utils ## Basic Information - **Project Name**: vhs-utils - **Description**: Objects and functions shared throughout @videojs/http-streaming code - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-18 - **Last Updated**: 2026-07-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README - [@videojs/vhs-utils](#videojsvhs-utils) - [Installation](#installation) - [Usage](#usage) # @videojs/vhs-utils vhs-utils serves two purposes: 1. It extracts objects and functions shared throughout @videojs/http-streaming code to save on package size. See [the original @videojs/http-streaming PR](https://github.com/videojs/http-streaming/pull/637) for details. 2. It exports generic functions from VHS that may be useful to plugin authors. ## Installation ```sh npm install --save @videojs/vhs-utils ``` ## Usage All utility functions are published under dist and can be required/imported like so: > es import using es dist ```js import resolveUrl from '@videojs/vhs-utils/es/resolve-url'; ``` > cjs import using cjs dist ```js const resolveUrl = require('@videojs/vhs-utils/cjs/resolve-url'); ``` > depricated cjs dist ```js const resolveUrl = require('@videojs/vhs-utils/dist/resolve-url'); ```