-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathglobal.js
More file actions
25 lines (22 loc) · 1.31 KB
/
global.js
File metadata and controls
25 lines (22 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env node
import { invoke_process } from '../lib/index.js';
import { CONSOLE_COLORS } from '../util/const.js';
import fs from 'fs';
// import * as meta from "";
// Displays the text in the console
let meta = JSON.parse(fs.readFileSync('package.json', 'utf-8'));
console.log('');
console.log(
CONSOLE_COLORS.FgGreen,
'┌─────────────────────────────────────────────────────────────────────────┐'
);
console.log(' | |');
console.log(' | Welcome to |');
console.log(
` | Create React Play (v ${meta.version}) |`
);
console.log(' | |');
console.log(' | For help hit : create-react-play -h/help |');
console.log(' └─────────────────────────────────────────────────────────────────────────┘');
console.log(CONSOLE_COLORS.Reset, '');
invoke_process();