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 https://example.com ``` ## 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

USAGE
  $ vidiff init

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

DESCRIPTION
  ...
  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

USAGE
  $ vidiff create-build

OPTIONS
  -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

USAGE
  $ vidiff help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --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