Supported languages
This page says which computers Niro runs on, which languages it reads, and how much of each language's libraries it recognises. Each language has its own page with the full list.
Computers
- macOS and Linux, on Intel (x64) and ARM (arm64) processors.
- Windows: supported. The details are coming.
- Node.js 18 or newer runs the
nirocommand. - Disk:
niro startwarns when less than 2 GB is free, because a large repository's graph can need more.
Languages Niro reads
Niro reads a file when its ending (its extension) is one of these:
| Language | File endings |
|---|---|
| Java | .java |
| JavaScript | .js .jsx .mjs .cjs .html .htm .vue .svelte |
| TypeScript | .ts .mts .cts .astro |
| TSX | .tsx |
| Python | .py .pyw .pyi |
| C# | .cs .csx |
| Kotlin | .kt .kts |
| Go | .go |
| PHP | .php .phtml .php3 .php4 .php5 |
| Ruby | .rb .rake .gemspec |
| Swift | .swift |
| Rust | .rs |
| C | .c .h |
| C++ | .cpp .cc .cxx .hpp .hxx .h++ .c++ .hh .tcc .ipp .inl .tpp |
Notes on the table:
- In
.htmland.htmfiles, and in.vueand.sveltecomponents, Niro reads only the script blocks inside the page. - A
.hheader that holds C++ is read as C++, not as C.
Languages Niro counts but does not read
Niro has no reader for these. It counts their files, and says so in a build's summary and in get_index_status, but nothing in them reaches the graph.
| File ending | Language |
|---|---|
.fs |
F# |
.fsi |
F# |
.fsx |
F# |
.vb |
Visual Basic |
Libraries recognised, per language
What the marks mean.
- Supported: Niro recognised every way of using it that the test code tries.
- Partly: Niro recognised some of those ways, or recognised one only in part.
- Not yet: Niro did not recognise it in the test code.
The test code is made up for the purpose: one small service per library, with the names invented. So "supported" means Niro recognised it there. It is good evidence, but it is not a promise about every codebase. If Niro misses something in your code, the coverage audit reports the gap on its own (see Coverage audit).
| Language | Libraries supported | Partly | Not yet | Full list |
|---|---|---|---|---|
| C | 13 | 4 | 34 | Supported in C |
| C++ | 24 | 6 | 48 | Supported in C++ |
| C# | 61 | 25 | 36 | Supported in C# |
| Go | 72 | 36 | 61 | Supported in Go |
| Java | 108 | 19 | 17 | Supported in Java |
| JavaScript | 95 | 28 | 18 | Supported in JavaScript |
| Kotlin | 27 | 5 | 10 | Supported in Kotlin |
| PHP | 41 | 18 | 19 | Supported in PHP |
| Python | 91 | 28 | 26 | Supported in Python |
| Ruby | 34 | 25 | 24 | Supported in Ruby |
| Rust | 38 | 11 | 19 | Supported in Rust |
| Swift | 21 | 10 | 20 | Supported in Swift |
| TypeScript | 82 | 17 | 32 | Supported in TypeScript |
PowerShell has one entry in the test catalog and no reader, so it has no page.