forked from bnb/bitandbang
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.js
More file actions
executable file
·56 lines (50 loc) · 1.14 KB
/
build.js
File metadata and controls
executable file
·56 lines (50 loc) · 1.14 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
"use strict";
const boxen = require("boxen");
const chalk = require("chalk");
const fs = require("fs");
const path = require("path");
const options = {
padding: 1,
margin: 1,
borderColor: "magenta"
};
const data = {
name: chalk.magenta.bold(" Jen Downs"),
web:
chalk.magenta.bold(" Web:") +
chalk.white(" https://") +
chalk.cyan("jendowns.com"),
npm:
chalk.magenta.bold(" npm:") +
chalk.white(" https://npmjs.com/") +
chalk.cyan("~jendowns"),
github:
chalk.magenta.bold(" GitHub:") +
chalk.white(" https://github.com/") +
chalk.cyan("jendowns"),
linkedin:
chalk.magenta.bold(" LinkedIn:") +
chalk.white(" https://linkedin.com/in/") +
chalk.cyan("jendowns"),
npx: chalk.magenta.bold(" $ ") +
chalk.cyan("npx jendowns")
};
const newline = "\n";
const output =
`${data.name}` +
newline +
newline +
`${data.web}` +
newline +
`${data.github}` +
newline +
`${data.linkedin}` +
newline +
`${data.npm}` +
newline +
newline +
`${data.npx}`;
fs.writeFileSync(
path.join(__dirname, "bin/output"),
chalk(boxen(output, options))
);