#ninja #fmt #file #ninja-fmt

build ninja-fmt

Format ninja targets from file paths

2 unstable releases

new 0.2.0 Apr 3, 2025
0.1.0 Mar 30, 2025

#150 in Build Utils

Download history 51/week @ 2025-03-24 179/week @ 2025-03-31

230 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
~33K SLoC