@videojs/vhs-utils

4.0.0 • Public • Published

@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 for details.
  2. It exports generic functions from VHS that may be useful to plugin authors.

Installation

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

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');

Dependents (47)

Package Sidebar

Install

npm i @videojs/vhs-utils

Weekly Downloads

600,826

Version

4.0.0

License

MIT

Unpacked Size

4.49 MB

Total Files

835

Last publish

Collaborators

  • phale
  • ddashkevich
  • roman-bc
  • walterseymourbc
  • videojs-user
  • usmanonazim
  • mmcclure
  • misteroneill
  • misterben
  • lday
  • imbcmdth
  • hswaminathan
  • heff
  • gkatsev
  • gesinger
  • essk
  • dmlap
  • brandonocasey
  • awaldron
  • abarstow