Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dtex

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dtex - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

47

bin/card.js
#!/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 accent = (text) => {
return `${style.accent}${text}${style.reset}`
}
const bold = (text) => {
return `${style.bold}${text}${style.reset}`
}
// Text definitions

@@ -28,15 +44,20 @@ const data = {

// Actual strings we're going to output
const newline = '\n'
const divider = '\n_____________________________________________\n\n'
const heading = `${data.name} ${data.handle}`
const working = `${data.labelWork} ${data.work}`
const twittering = `${data.labelTwitter} ${data.twitter}`
const githubing = `${data.labelGitHub} ${data.github}`
const linkedining = `${data.labelLinkedIn} ${data.linkedin}`
const webing = `${data.labelWeb} ${data.web}`
const carding = `${data.labelCard} ${data.npx}`
const output = [
'',
style.divider,
'',
`${data.name} ${accent(data.handle)}`,
'',
`${bold(data.labelWork)} ${data.work}`,
`${bold(data.labelTwitter)} ${accent(data.twitter)}`,
`${bold(data.labelGitHub)} ${accent(data.github)}`,
`${bold(data.labelLinkedIn)} ${accent(data.linkedin)}`,
`${bold(data.labelWeb)} ${accent(data.web)}`,
'',
`${bold(data.labelCard)} ${data.npx}`,
'',
style.divider,
''
]
// Put all our output together into a single variable so we can use boxen effectively
const output = divider + heading + newline + newline + working + newline + twittering + newline + githubing + newline + linkedining + newline + webing + newline + newline + carding + divider + data.disclaimer.join('\n') + newline
console.log(output)
console.log(output.join('\n') + style.newline)
{
"name": "dtex",
"version": "1.0.0",
"version": "1.0.1",
"description": "A personal card for Donovan Buck (@dtex)",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc