commit - d54fc62b4de7bf18546d225fd5402ff4a72a536c
commit + 4b4cf0e56882bf6d774614b8c0c3a0dafe6cd3ea
blob - /dev/null
blob + cf54ebfcd464f5945ee9d40612b44f50738b93d8 (mode 755)
--- /dev/null
+++ bin/jsfmt
+#!/bin/sh
+
+npx prettier --parser flow $@
blob - /dev/null
blob + ed749b1e68fe856f537e04e2f79bc25dea3a083c (mode 644)
--- /dev/null
+++ man/jsfmt.1
+.Dd
+.Dt JSFMT 1
+.Sh NAME
+.Nm jsfmt
+.Nd format javascript source code
+.Sh SYNOPSIS
+.Nm
+.Op Fl w
+.Op Ar
+.Sh DESCRIPTION
+.Nm
+copies the given javascript source files
+.Pq standard input if none specified
+to the standard output after formatting with
+.Xr prettier 1 .
+.Pp
+The
+.Fl w
+flag causes the files to be edited in place.
+.Sh EXIT STATUS
+.Ex
+.Sh SEE ALSO
+.Lk https://prettier.io The prettier project website