android-api-versions-console-chart
Advanced tools
Comparing version 1.0.3 to 1.1.0
{ | ||
"name": "android-api-versions-console-chart", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"description": "Android api versions percentage usage chart for displaying in javascript/terminal using nodejs and cli-pie", | ||
@@ -29,4 +29,3 @@ "main": "bin/index.js", | ||
"cli-pie": "^2.4.2", | ||
"node-fetch": "^3.3.0", | ||
"randomcolor": "^0.6.2" | ||
"node-fetch": "^3.3.0" | ||
}, | ||
@@ -33,0 +32,0 @@ "bin": { |
@@ -50,3 +50,2 @@ # android-api-versions-console-chart | ||
|-------------------------------------------------------------------|---------------------------------------------------------| | ||
| Random Color ([npmjs](https://www.npmjs.com/package/randomcolor)) | A tiny script for generating attractive random colors. | | ||
| Node Fetch ([npmjs](https://www.npmjs.com/package/node-fetch)) | A light-weight module that brings Fetch API to Node.js. | | ||
@@ -53,0 +52,0 @@ | cli-pie ([npmjs](https://www.npmjs.com/package/cli-pie)) | Generate pie charts in terminal and text mode. | |
import Pie from "cli-pie"; | ||
import randomcolor from "randomcolor"; | ||
const mapToPieDataItem = v => Object.assign({}, { | ||
label: `V${v.version}: ${v.name}`, | ||
value: v.distributionPercentage, | ||
color: randomcolor({ | ||
luminosity: 'dark', | ||
format: 'rgbArray' | ||
}) | ||
value: v.distributionPercentage | ||
}); | ||
@@ -12,0 +7,0 @@ |
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
2
81094
65
68
- Removedrandomcolor@^0.6.2
- Removedrandomcolor@0.6.2(transitive)