linguist-js
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -57,3 +57,3 @@ "use strict"; | ||
const totalBytes = languages.bytes; | ||
console.log(`Analysed ${files.bytes.toLocaleString()} B from ${files.count} files with linguist-js`); | ||
console.log(`\n Analysed ${files.bytes.toLocaleString()} B from ${files.count} files with linguist-js`); | ||
console.log(`\n Language analysis results:`); | ||
@@ -67,3 +67,3 @@ let i = 0; | ||
bytes: bytes.toLocaleString().padStart(10, ' '), | ||
icon: colouredMsg(hexToRgb(color !== null && color !== void 0 ? color : '#eee'), '\u2588'), | ||
icon: colouredMsg(hexToRgb(color !== null && color !== void 0 ? color : '#ededed'), '\u2588'), | ||
}; | ||
@@ -79,3 +79,3 @@ console.log(` ${fmtd.index}. ${fmtd.icon} ${fmtd.lang} ${fmtd.percent}% ${fmtd.bytes} B`); | ||
for (const [ext, bytes] of Object.entries(unknown.extensions)) { | ||
console.log(` '.${ext}': ${bytes.toLocaleString()} B`); | ||
console.log(` '${ext}': ${bytes.toLocaleString()} B`); | ||
} | ||
@@ -82,0 +82,0 @@ console.log(` Total: ${unknown.bytes.toLocaleString()} B`); |
{ | ||
"name": "linguist-js", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Analyse languages used in a folder. Powered by GitHub Linguist, although it doesn't need to be installed.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -79,4 +79,4 @@ [![Latest version](https://img.shields.io/github/v/release/Nixinova/Linguist?label=latest%20version&style=flat-square)](https://github.com/Nixinova/Linguist/releases) | ||
- File paths in the output use only forward slashes as delimiters, even on Windows. | ||
- Do not rely on any language classification output from Linguist being immutable between runs. | ||
Language data is fetched each run from the latest classifications of `github-linguist`. | ||
- Do not rely on any language classification output from Linguist being unchanged between runs. | ||
Language data is fetched each run from the latest classifications of [`github-linguist`](https://github.com/github/linguist). | ||
This data is subject to change at any time and may change the results of a run even when using the same version of Linguist. | ||
@@ -83,0 +83,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
34259