sane-fmt

Opinionated code formatter for TypeScript and JavaScript

cargomacoslinuxwindows
Try with needOr install directly
Source

About

Opinionated code formatter for TypeScript and JavaScript

Commands

sane-fmt

Examples

format all JavaScript files in current directory$ sane-fmt '**/*.js'
format TypeScript files and write changes$ sane-fmt src/**/*.ts --write
check if files are formatted without making changes$ sane-fmt --check src/
format a single file and print to stdout$ sane-fmt app.tsx
format files and ignore node_modules directory$ sane-fmt '**/*.{js,ts}' --write --ignore node_modules