|
há 2 anos atrás | |
---|---|---|
.. | ||
cjs | há 2 anos atrás | |
dist | há 2 anos atrás | |
es | há 2 anos atrás | |
scripts | há 2 anos atrás | |
src | há 2 anos atrás | |
test | há 2 anos atrás | |
CHANGELOG.md | há 2 anos atrás | |
CONTRIBUTING.md | há 2 anos atrás | |
LICENSE | há 2 anos atrás | |
README.md | há 2 anos atrás | |
index.html | há 2 anos atrás | |
package.json | há 2 anos atrás |
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');