Repository navigation
3.0.0
Version 3.0 of LinguistJS is finally here!
Install on npm using npm install linguist-js@3.0.0.
Overview
This release revamps the entry points for the program by splitting them by functionality (analysing raw content vs analysing a folder on disc), changes the output schema to be more sensible, and updates outdated dependencies.
✨ Keeping up with the times, this version includes a vibe–major refactor to the codebase – this doesn't affect usage of this tool at all, but does make it significantly easier to maintain.
Changelog
Full Changelog: 2.9.2...3.0.0, 3.0.0-pre...3.0.0
Breaking changes
- Removed default-exported
analysefunction.- Replaced with separate functions
analyseFoldersandanalyseRawContent.
- Replaced with separate functions
- Removed type, parent and color keys from individual language results.
- Removed
files.alternatives. - Removed
lines.code. - Removed
analyzeCLI arg alias. British spelling only for the api now. - Output is now an ES 2025 module
- Must be imported using
import ... from 'linguist-js'instead ofconst ... = require('linguist-js')
- Must be imported using
- Package now requires Node 26+.
New features
- Added
repositoriesoutput object, featuring all languages' metadata. - Added
countproperty per language result.
Fixes
- Fixed ReDoS vulnerabilities.
- Fixed
childLanguagesparameter always being enabled.