@chatr-box/cli
Version:
Create a new Chatrbox app in one command
22 lines (17 loc) • 508 B
JavaScript
/**
* create-chatrbox-app
*
* Creates a new Chatrbox project in one command.
*/
const currentNodeVersion = process.versions.node;
const [major] = currentNodeVersion.split('.');
// Check Node version
if (parseInt(major, 10) < 18) {
console.error('You are running Node ' + currentNodeVersion);
console.error('create-chatrbox-app requires Node 18 or higher.');
console.error('Please update your version of Node.');
process.exit(1);
}
// Run the CLI
require('./dist/cli.js');