Skip to content

Commit

Permalink
2.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Nixinova committed Feb 8, 2025
1 parent 4ee0b45 commit 58a2f63
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 49 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
node-version: [20.x, 18.x, 16.x, 14.x, 12.x]
node-version: [23.x, 22.x, 20.x, 18.x, 16.x, 14.x, 12.x]

steps:
- uses: actions/checkout@v2
Expand Down
5 changes: 3 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Changelog

## Next
- Added `minSize` CLI option to control a minimum size to return, with results smaller than this threshold put in 'Other' ([#35](https://github.com/Nixinova/LinguistJS/pull/35)).
## 2.9.0
*2025-02-09*
- Added `minSize` CLI option to control a minimum size for results, with languages smaller than this threshold moved into 'Other' ([#32](https://github.com/Nixinova/LinguistJS/issues/32), [#35](https://github.com/Nixinova/LinguistJS/pull/35)).

## 2.8.1
*2024-12-05*
Expand Down
48 changes: 24 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linguist-js",
"version": "2.8.1",
"version": "2.9.0",
"description": "Analyse languages used in a folder. Powered by GitHub Linguist, although it doesn't need to be installed.",
"main": "dist/index.js",
"bin": {
Expand Down Expand Up @@ -42,8 +42,8 @@
"binary-extensions": "^2.3.0 <3",
"commander": "^9.5.0 <10",
"common-path-prefix": "^3.0.0",
"cross-fetch": "^3.1.8 <4",
"ignore": "^5.3.2",
"cross-fetch": "^3.2.0 <4",
"ignore": "^7.0.3",
"isbinaryfile": "^4.0.10 <5",
"js-yaml": "^4.1.0",
"node-cache": "^5.1.2"
Expand Down
58 changes: 39 additions & 19 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ Running LinguistJS on this folder will return the following JSON:
"files": {
"count": 5,
"bytes": 6020,
"lines": {
"total": 100,
"content": 90,
"code": 80,
},
"lines": {
"total": 100,
"content": 90,
"code": 80,
},
"results": {
"/src/index.ts": "TypeScript",
"/src/cli.js": "JavaScript",
Expand All @@ -69,26 +69,46 @@ Running LinguistJS on this folder will return the following JSON:
"languages": {
"count": 3,
"bytes": 6010,
"lines": {
"total": 90,
"content": 80,
"code": 70,
},
"lines": {
"total": 90,
"content": 80,
"code": 70,
},
"results": {
"JavaScript": { "type": "programming", "bytes": 1000, "lines": { "total": 49, "content": 49, "code": 44 }, "color": "#f1e05a" },
"Markdown": { "type": "prose", "bytes": 3000, "lines": { "total": 10, "content": 5, "code": 5 }, "color": "#083fa1" },
"Ruby": { "type": "programming", "bytes": 10, "lines": { "total": 1, "content": 1, "code": 1 }, "color": "#701516" },
"TypeScript": { "type": "programming", "bytes": 2000, "lines": { "total": 30, "content": 25, "code": 20 }, "color": "#2b7489" },
"JavaScript": {
"type": "programming",
"bytes": 1000,
"lines": { "total": 49, "content": 49, "code": 44 },
"color": "#f1e05a"
},
"Markdown": {
"type": "prose",
"bytes": 3000,
"lines": { "total": 10, "content": 5, "code": 5 },
"color": "#083fa1"
},
"Ruby": {
"type": "programming",
"bytes": 10,
"lines": { "total": 1, "content": 1, "code": 1 },
"color": "#701516"
},
"TypeScript": {
"type": "programming",
"bytes": 2000,
"lines": { "total": 30, "content": 25, "code": 20 },
"color": "#2b7489"
},
},
},
"unknown": {
"count": 1,
"bytes": 10,
"lines": {
"total": 10,
"content": 10,
"code": 10,
},
"lines": {
"total": 10,
"content": 10,
"code": 10,
},
"filenames": {
"no-lang": 10,
},
Expand Down

0 comments on commit 58a2f63

Please sign in to comment.