UNPKG

better-npm-init

Version:

A better version of npm init, with templates and more. Usage: better-npm-init <template> [--yarn] [--install] [--git] [--yes] [--help]

16 lines (14 loc) 287 B
#! /usr/bin/env node 'use strict'; const yarnOrNpm = require('../index'); // Execute the command try { const status = yarnOrNpm.spawn.sync( process.argv.slice(2), { stdio: 'inherit' } ).status process.exit(status); } catch (err) { console.log(err); process.exit(1); }