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

ahmedelgabri

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ahmedelgabri - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

57

bin/card.js
#!/usr/bin/env node
// Pull in our modules
const chalk = require('chalk')
const boxen = require('boxen')
'use strict'
// Define options for Boxen
const options = {
padding: 1,
margin: 1,
borderStyle: 'round',
}
// Text + chalk definitions
const data = {
name: chalk.white('Ahmed El Gabri /'),
handle: chalk.cyan('ahmedelgabri'),
work: chalk.white(
'Principal Software Developer, Front-End (JavaScript) @LightspeedHQ',
),
twitter: chalk.cyan('https://twitter.com/ahmedelgabri'),
github: chalk.cyan('https://github.com/ahmedelgabri'),
linkedin: chalk.cyan('https://linkedin.com/in/ahmedelgabri'),
web: chalk.cyan('https://gabri.me'),
npx: chalk.white('npx ahmedelgabri'),
labelWork: chalk.white.bold(' Work:'),
labelTwitter: chalk.white.bold(' Twitter:'),
labelGitHub: chalk.white.bold(' GitHub:'),
labelLinkedIn: chalk.white.bold(' LinkedIn:'),
labelWeb: chalk.white.bold(' Web:'),
labelCard: chalk.white.bold(' Card:'),
}
// Actual strings we're going to output
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}`
// Put all our output together into a single variable so we can use boxen effectively
const output = `${heading}
${working}
${twittering}
${githubing}
${linkedining}
${webing}
${carding}`
console.log(chalk.green(boxen(output, options)))
const fs = require('fs')
const path = require('path')
const output = fs.readFileSync(path.join(__dirname, 'output'), 'utf8')
console.log(output)

9

package.json
{
"name": "ahmedelgabri",
"author": "Ahmed El Gabri <ahmed@gabri.me> (https://gabri.me)",
"version": "2.0.2",
"version": "2.0.3",
"description": "A personal card for Ahmed El Gabri (@ahmedelgabri)",

@@ -13,4 +13,7 @@ "license": "MIT",

"scripts": {
"start": "node ./bin/card.js",
"lint": "standard"
"prepublish": "npm run build",
"build": "node build.js",
"dev": "npm run build && node ./bin/card.js",
"lint": "standard",
"test": "echo \"Error: no test specified\" && exit 1"
},

@@ -17,0 +20,0 @@ "keywords": [

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