npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

nvx

1.0.4 • Public • Published

nvx NPM version Build Status Dependency Status Coverage percentage Greenkeeper badge

Run commands on multiple node versions as specified from .travis.yml, circle.yml or arguments; uses npx and is ideal for testing.

Prerequisites

  • Only requires npx so, >= npm@5.2.0
  • Includes nvx and nvx-test CLI commands (also nvxt alias for nvx-test)

Installation

$ npm install nvx --global

CLI Usage

$ nvx --help
 
Usage
 
  $ nvx [version ...] -- <command>
 
Examples
 
  # Use versions found in .travis.yml or circle.yml 
  $ nvx -- npm test
 
  # Specifically use versions: 0.12 and 8 
  $ nvx 0.12 8 -- npm test
 
  # Not limited to just npm test 
  $ nvx 0.12 8 -- node ./oicu812.js
 
 
  ## shorthand commands for npm test ## 
  ##           nvx-test              ## 
  ##           nvxt                  ## 
 
 
  # Run "npm test" using versions found 
  # in .travis.yml or circle.yml 
  $ nvx-test
 
  # Specifically use versions: 0.12 and 8 
  $ nvx-test 0.12 8

License

ISC © Buster Collings

install

npm i nvx

Downloadsweekly downloads

23

version

1.0.4

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability