Opinionated javascript formatter inspired by golang fmt. Because it just looks cooler this way.
yarn global add nfmt
In any directory containing .js files run nfmt [path] in the command line and all the files will be formatted. path is optional.
> nfmt ./src/import next from 'nfmt'
...
// next :: String -> String
next(source) // => FormatedCode