# rdio/jsfmt

For formatting, searching, and rewriting JavaScript.

Repository: https://github.com/rdio/jsfmt
Canonical: https://ross.abutalabs.com/products/jsfmt
Homepage: http://rdio.github.io/jsfmt/
Language: JavaScript
License: NOASSERTION
License Family: other
Last push: 2020-04-04T12:38:35+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4566, "days_push": 2342, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1681, forks 53 (observed 2026-08-28T04:05:21.656693+00:00)

## What it is
jsfmt is a command-line tool and Node.js library for formatting, searching, and rewriting JavaScript, analogous to Go's gofmt. It operates on the AST via esprima and esformatter, supporting pattern-based search and rewrite rules like '_.reduce(a, b, c) -> a.reduce(b, c)'.

## Use cases
- format javascript files like gofmt
- find all console.log calls in a project
- rewrite underscore.js calls to native methods
- check which files need formatting
- refactor api changes across a codebase
- output javascript as a  ast

## When to choose
- you want gofmt-style formatting for javascript
- you need AST-based search or bulk rewriting of code patterns
- you want a scriptable codemod tool with a simple pattern syntax

## When to avoid
- you need a modern, actively maintained formatter like prettier
- you need ES6+ or JSX support
- you want IDE-integrated formatting

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: formatter, parser, search-engine, developer-tools
- domain: developer-tools, web-development, parsers
- platform: cli, cross-platform
- tags: gofmt-for-javascript, ast-rewriting, code-search, esformatter, esprima, command-line, nodejs

## Member repositories
- rdio/jsfmt (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:21.656693+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:41:26.398644+00:00, confidence not recorded.
  - readme: https://github.com/rdio/jsfmt (fetched 2026-08-28T04:05:21.656693+00:00, sha a2fd41e63057)
  - homepage: http://rdio.github.io/jsfmt/ (fetched 2026-08-29T11:14:50.043363+00:00, sha 05b2c6af893d)
  - registry_npm: https://registry.npmjs.org/jsfmt (fetched 2026-08-29T11:14:50.052278+00:00, sha acdca0cdd31d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
