ahmedelgabri
Advanced tools
Comparing version 2.0.2 to 2.0.3
#!/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) |
{ | ||
"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": [ |
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
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
2465
6
1
1
1