mattbeiswenger
Advanced tools
Comparing version 1.0.0 to 1.0.1
14
index.js
@@ -0,1 +1,3 @@ | ||
#!/usr/bin/env node | ||
const links = [ | ||
@@ -5,1 +7,13 @@ { title: 'Twitter', url: 'beis.io/twitter' }, | ||
] | ||
const longestTitleLength = links | ||
.map((link) => link.title) | ||
.reduce((longest, current) => { | ||
return longest.length > current.length ? longest : current.length | ||
}, 0) | ||
links.forEach((link) => { | ||
console.log( | ||
`${link.title.padEnd(longestTitleLength, ' ')} -> https://${link.url}` | ||
) | ||
}) |
{ | ||
"name": "mattbeiswenger", | ||
"version": "1.0.0", | ||
"description": "", | ||
"version": "1.0.1", | ||
"description": "Contact information and social links", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"bin": { | ||
"main": "index.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/mattbeiswenger/business-card.git" | ||
}, | ||
"author": "Matt Beiswenger <mattbeis@yahoo.com>", | ||
@@ -10,0 +14,0 @@ "license": "MIT", |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
1162
33
1
0