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.1 to 1.0.2

41

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 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",

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