depxbox
Version:
Test npm packages super quick and easy.
15 lines (14 loc) • 628 B
JavaScript
import { Command } from 'commander';
import { action } from './action.js';
const program = new Command();
export function bootstrap() {
program
.name('depxbox')
.description('Dependency Sandbox: test npm dependencies in a REPL session or Playground environment')
.argument('<packages...>', 'npm package names to install and test')
.option('-m, --mode <type>', 'execution mode: repl or playground')
.option('-p, --path <path>', 'specify path for installation')
.option('-d, --default', 'use all default values and skip prompts')
.action(action);
program.parse();
}