wesmiler 912a7e0791 wesmiler hace 2 años
..
cjs 912a7e0791 wesmiler hace 2 años
dist 912a7e0791 wesmiler hace 2 años
es 912a7e0791 wesmiler hace 2 años
scripts 912a7e0791 wesmiler hace 2 años
src 912a7e0791 wesmiler hace 2 años
test 912a7e0791 wesmiler hace 2 años
CHANGELOG.md 912a7e0791 wesmiler hace 2 años
CONTRIBUTING.md 912a7e0791 wesmiler hace 2 años
LICENSE 912a7e0791 wesmiler hace 2 años
README.md 912a7e0791 wesmiler hace 2 años
index.html 912a7e0791 wesmiler hace 2 años
package.json 912a7e0791 wesmiler hace 2 años

README.md

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