Comparing version 1.0.1 to 1.0.2
#!/usr/bin/env node | ||
// 👆 Used to tell Node.js that this is a CLI tool | ||
const style = { | ||
reset: '\x1b[0m', | ||
accent: '\x1b[35m', | ||
bold: '\x1b[1m', | ||
divider: '_____________________________________________', | ||
newline: '\n' | ||
const colors = { | ||
black: '30m', | ||
red: '31m', | ||
green: '32m', | ||
yellow: '33m', | ||
blue: '34m', | ||
purple: '35m', | ||
cyan: '36m', | ||
white: '37m', | ||
} | ||
const accent = (text) => { | ||
return `${style.accent}${text}${style.reset}` | ||
return `${style.accent}${text}\x1b[0m` | ||
} | ||
const bold = (text) => { | ||
return `${style.bold}${text}${style.reset}` | ||
return `\x1b[1m${text}\x1b[0m` | ||
} | ||
const style = { | ||
// Change accent color here | ||
accent: `\x1b[${colors.purple}`, | ||
// Change card width here | ||
divider: ''.padEnd(44, '_') | ||
} | ||
// Text definitions | ||
@@ -35,8 +47,3 @@ const data = { | ||
labelWeb: ' Web:', | ||
labelCard: ' Card:', | ||
disclaimer: [ | ||
'Thank you for trusting my npx card. It is not', | ||
'as pretty as some others but it has zero', | ||
'dependencies.' | ||
] | ||
labelCard: ' Card:' | ||
} | ||
@@ -46,3 +53,2 @@ | ||
const output = [ | ||
'', | ||
style.divider, | ||
@@ -59,3 +65,2 @@ '', | ||
`${bold(data.labelCard)} ${data.npx}`, | ||
'', | ||
style.divider, | ||
@@ -65,2 +70,4 @@ '' | ||
console.log(output.join('\n') + style.newline) | ||
console.log(output.join('\n')) | ||
{ | ||
"name": "dtex", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A personal card for Donovan Buck (@dtex)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58
3155