#ninja #fmt #file #ninja-fmt

app ninja-fmt

Format ninja targets from file paths

2 unstable releases

0.2.0 Apr 3, 2025
0.1.0 Mar 30, 2025

#638 in Parser implementations

Download history 51/week @ 2025-03-24 186/week @ 2025-03-31 60/week @ 2025-04-07 3/week @ 2025-04-14

300 downloads per month

MIT/Apache

10KB
98 lines

Format ninja targets from file paths.

TODO:

  • target extension mapping (e.g. specify '.c' to '.o')
  • output relative paths (i.e. mutate source paths to be relative to output file)
  • canonicalize paths (don't need relative paths, but now system/user specific)

Dependencies

~1.2–1.8MB
~32K SLoC