Comparing version 1.0.0 to 1.0.1
#!/usr/bin/env node | ||
var _ = require('lodash'); | ||
var fullStar = '★'; | ||
var emptyStar = '☆'; | ||
var MAX_STARS = 5; | ||
var stars = process.argv.slice(2)[0] || 0; | ||
stars = stars > MAX_STARS ? MAX_STARS : stars; | ||
var rating = ''; | ||
_.range(stars).forEach(function () { | ||
rating += fullStar; | ||
}); | ||
_.range(MAX_STARS - stars).forEach(function () { | ||
rating += emptyStar; | ||
}); | ||
console.log(rating); | ||
var stars = Math.max(process.argv.slice(2)[0] || 0, 0); | ||
console.log( | ||
fullStar.repeat(Math.min(MAX_STARS, stars)) + | ||
emptyStar.repeat(MAX_STARS - stars) | ||
); |
{ | ||
"name": "stidda", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "a useless cli script to print star rating", | ||
@@ -12,6 +12,3 @@ "author": "Vincenzo Ciaccio <vincenzo.ciaccio@gmail.com>", | ||
"url": "https://github.com/vikkio88/stidda.git" | ||
}, | ||
"dependencies": { | ||
"lodash": "^4.17.4" | ||
} | ||
} |
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
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
0
2067
8
1
- Removedlodash@^4.17.4
- Removedlodash@4.17.21(transitive)