GithubHelp home page GithubHelp logo

isabella232 / videojs-4to5 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from videojs/videojs-4to5

0.0 0.0 0.0 57 KB

Tools to ease the transition from video.js 4.x to 5.x.

License: Other

JavaScript 96.69% HTML 3.31%

videojs-4to5's Introduction

videojs-4to5

This provides two tools to ease the transition from video.js 4.x to 5.x.

The videojs-4to5 Binary

When installed globally, this package creates a binary which can be used to automatically refactor code written for video.js 4.x to work with 5.x.

npm install -g videojs-4to5

Run the script in a shell, pass it directories and/or files:

videojs-4to5 my-project some-file.js

All JavaScript files will be edited in place (unless you do a --dry-run).

Options

For all options, see: videojs-4to5 -h.

The Plugin

We recommend using the binary to update your code, but this package also includes a plugin which can be included in your web page(s) to shim in video.js 4.x APIs to a 5.x environment. This shimming is not meant to provide perfect 1:1 compatibility, but it should address virtually all use-cases.

Getting the Plugin

If you have installed via npm (strongly preferred), the plugin will be available in both its original state and minified in dist/plugin.(min.)js. You'll probably want to install it locally within your project for this use-case (i.e. not -g).

If you have installed via Bower, the plugin will only be available in its original state in src/plugin.js. Supporting Bower with a minified version would mean checking dist/ into the repository which is not desirable. We may reevaluate that choice in the future.

videojs-4to5's People

Contributors

misteroneill avatar gkatsev avatar petermekhaeil avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.