Skip to content

Commit a1ea4ed

Browse files
unhappychoiceclaude
andcommitted
docs: update documentation for JavaScript language support
Update supported languages documentation and README to include JavaScript: - Add JavaScript to language support table with partial support status - Document JavaScript extraction features and current limitations - Update language filtering examples to include JavaScript - Add note about development status and tree-sitter pattern refinement needs 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 9e0648b commit a1ea4ed

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
## Features ✨
1010

11-
- 🦀🐍⚡🐹💎🍎🎯☕🐘 **Multi-language**: Rust, TypeScript, Python, Go, Ruby, Swift, Kotlin, Java, PHP (more languages incoming!)
11+
- 🦀🐍⚡🐹💎🍎🎯☕🐘 **Multi-language**: Rust, TypeScript, JavaScript, Python, Go, Ruby, Swift, Kotlin, Java, PHP (more languages incoming!)
1212
- 📊 **Real-time metrics**: Live WPM, accuracy, and consistency tracking as you type
1313
- 🏆 **Ranking system**: Unlock developer titles from "Hello World Newbie" to "Quantum Computer" with ASCII art
1414
- 🎮 **Multiple game modes**: Normal, Time Attack, and custom difficulty levels (Easy to Zen)

docs/supported-languages.md

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
|----------|-----------|--------|-------------------|
77
| Rust | `.rs` | ✅ Full support | `tree-sitter-rust` |
88
| TypeScript | `.ts`, `.tsx` | ✅ Full support | `tree-sitter-typescript` |
9+
| JavaScript | `.js`, `.mjs`, `.cjs` | ⚠️ Partial support | `tree-sitter-javascript` |
910
| Python | `.py` | ✅ Full support | `tree-sitter-python` |
1011
| Go | `.go` | ✅ Full support | `tree-sitter-go` |
1112
| Ruby | `.rb` | ✅ Full support | `tree-sitter-ruby` |
@@ -36,6 +37,19 @@
3637
- Enums (`enum`) - enum declarations with values and computed properties
3738
- Namespaces (`namespace`) - namespace declarations with exported members
3839

40+
### JavaScript
41+
- Function declarations (`function`)
42+
- Arrow functions (`() => {}`)
43+
- Function expressions
44+
- Classes (`class`) - ES6+ class syntax
45+
- Methods (class and object methods)
46+
- Variable declarations with functions (`const fn = () => {}`)
47+
- Async functions (`async function`)
48+
- Export/import statements (ES modules)
49+
- Object literal methods
50+
51+
> **Note**: JavaScript support is currently in development. Tree-sitter patterns need refinement for full extraction capability.
52+
3953
### Python
4054
- Functions (`def`)
4155
- Classes (`class`)
@@ -115,10 +129,10 @@
115129

116130
| Language | Priority | Expected | Notes |
117131
|----------|----------|----------|--------|
118-
| JavaScript | High | Next release | ESM/CommonJS support |
119-
| C++ | Medium | Q3 2025 | Modern C++17/20 |
132+
| C++ | High | Q2 2025 | Modern C++17/20 features |
120133
| C# | Medium | Q3 2025 | .NET 6+ features |
121-
| Dart | Low | Future | Flutter development |
134+
| Dart | Medium | Q4 2025 | Flutter development |
135+
| Zig | Low | Future | Systems programming |
122136

123137
## Language-Specific Options
124138

@@ -129,14 +143,14 @@
129143
gittype --langs rust
130144

131145
# Multiple languages
132-
gittype --langs rust,typescript,python,go,ruby,swift,kotlin,java,php
146+
gittype --langs rust,typescript,javascript,python,go,ruby,swift,kotlin,java,php
133147
```
134148

135149
### Configuration File
136150

137151
```toml
138152
[default]
139-
langs = ["rust", "typescript", "python", "go", "ruby", "swift", "kotlin", "java", "php"]
153+
langs = ["rust", "typescript", "javascript", "python", "go", "ruby", "swift", "kotlin", "java", "php"]
140154
```
141155

142156
## Code Extraction Quality

0 commit comments

Comments
 (0)