Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including vidiff with all npm packages installed. Try it out:

var vidiff = require("vidiff")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

vidiff v1.0.2

Vidiff CLI

Vidiff CLI

Version License

* [Usage](#usage) * [Commands](#commands) ## Usage ``` npx vidiff init --url ``` ## Commands * [`vidiff init`](#vidiff-init) * [`vidiff create-build`](#vidiff-create-build) * [`vidiff help [COMMAND]`](#vidiff-help-command)

vidiff init

Creates the files needed for Vidiff to work

  $ vidiff init

  -e, --entry=entry  [default: test/scenario.js] The location of the scenario file
  -u, --url=url      [default:] The URL to run the scenario on

  Creates two files in your repository:
  - A .vidiffrc configuration file, with default capabilities and branchToUrlMapping
  - A scenario file

See code: src/commands/init.js

vidiff create-build

Launches a new build

  $ vidiff create-build

  -t, --apiToken=apiToken                  (required) Your API token. Availlable in the account page.
  -p, --projectId=projectId                (required) The id of the project. Availlable in the project page.
  -b, --baselineBranch=baselineBranch      [default: the current branch] The baseline branch.
  -c, --comparisonBranch=comparisonBranch  [default: the current branch] The comparison branch.

See code: src/commands/create-build.js

vidiff help [COMMAND]

display help for vidiff

  $ vidiff help [COMMAND]

  COMMAND  command to show help for

  --all  see all commands in CLI

See code: @oclif/plugin-help

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free