# @videojs/vhs-utils

> Objects and functions shared throughtout @videojs/http-streaming code

Latest version **4.1.2** (published 2026-06-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @videojs/vhs-utils
pnpm add @videojs/vhs-utils
yarn add @videojs/vhs-utils
bun add @videojs/vhs-utils
```

## Health

**Score 55/100 (C)** — status: active.

Positive: esm support; no vulnerabilities; recently updated.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 4.1.2 |
| Published | 2026-06-19 |
| First published | 2019-08-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=8 |
| Dependencies | 2 |
| Unpacked size | 4.3 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | brandonocasey |
| Maintainers | ronaldqualabs, cpillsburymux, abarstow, awaldron, brandonocasey, essk, gesinger, gkatsev, heff, hswaminathan, imbcmdth, lday, mmcclure, usmanonazim, videojs-user, ddashkevich, phale |
| Keywords | videojs, videojs-plugin |

## Links

- npm: https://www.npmjs.com/package/@videojs/vhs-utils
- Repository: https://github.com/videojs/vhs-utils
- Homepage: https://github.com/videojs/vhs-utils#readme
- Issues: https://github.com/videojs/vhs-utils/issues
- npm.io page: https://npm.io/package/@videojs/vhs-utils

## Dependencies (2)

- [global](https://npm.io/package/global.md) ^4.4.0
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.12.5

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 4.1.2 (latest) — 2026-06-19
- 2.2.1 (experimental) — 2020-10-06
- 4.1.1 — 2024-07-10
- 4.1.0 — 2023-11-28
- 4.0.0 — 2022-08-19
- 3.0.5 — 2022-03-16
- 3.0.4 — 2021-09-22
- 3.0.3 — 2021-07-26
- 3.0.2 — 2021-05-20
- 3.0.1 — 2021-04-29
- 3.0.0 — 2020-12-18
- 2.3.0 — 2020-12-03
- 2.2.0 — 2020-05-01
- 2.1.0 — 2020-04-27
- 2.0.0 — 2020-04-07
- … 5 more at https://npm.io/package/@videojs/vhs-utils/versions

## README

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->


- [@videojs/vhs-utils](#videojsvhs-utils)
  - [Installation](#installation)
  - [Usage](#usage)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

# @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');
```

---
_Source: https://npm.io/package/@videojs/vhs-utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
