made-in-generator
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -79,2 +79,3 @@ 'use strict'; | ||
// make top 10 | ||
const developerNum = developers.length; | ||
const limit = 10; | ||
@@ -91,3 +92,3 @@ const now = new Date(); | ||
return `${result}${text}`; | ||
}, `${readme} \n## Top ${limit} Developers out of ${developers.length} (${nowStr})\n|Rank|Name|:star2:|\n|---|---|---|\n`) | ||
}, `${readme} \n## Top ${limit} Developers out of ${developerNum} (${nowStr})\n|Rank|Name|:star2:|\n|---|---|---|\n`) | ||
.value(); | ||
@@ -97,7 +98,7 @@ | ||
const rankLimit = 1000; | ||
readme += `\n-> [Top 1000/ Developers out of ${developers.length}](${homepage}/blob/master/docs/rankers.md)\n`; | ||
readme += `\n-> [Top 1000/ Developers out of ${developerNum}](${homepage}/blob/master/docs/rankers.md)\n`; | ||
ranks.splice(rankLimit * 2); | ||
const rankDoc = _.reduce(ranks.slice(0, rankLimit), (result, { text }) => { | ||
return `${result}${text}`; | ||
}, `## Top ${rankLimit} Developers (${nowStr})\n\n|Rank|Name|:star2:|\n|---|---|---|\n`); | ||
}, `## Top ${rankLimit} Developers out of ${developerNum} (${nowStr})\n\n|Rank|Name|:star2:|\n|---|---|---|\n`); | ||
const rankpath = path.resolve(basepath, 'docs', 'rankers.md'); | ||
@@ -104,0 +105,0 @@ fs.writeFileSync(rankpath, rankDoc, 'utf8'); |
{ | ||
"name": "made-in-generator", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "Geneator of made-in-xxx", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
16730
452