Skip to content
SPECIFICTION
Get listed

jscodeshift vs Spoon

jscodeshift

jscodeshift.com

Spoon

spoon.gforge.inria.fr

Side by side

FigurejscodeshiftSpoon
Price from—Free
Free plan—Yes
Free trial——
Open source——
WindowsYes—
macOSYes—
LinuxYesYes
API—Yes
Self-hostedYesYes
Plans published01
Spec score · Code Refactoring Tools7.7 (#13)7.8 (#10)
LicenseThe project is distributed under the MIT License.Spoon is free and open source under the CeCILL-C and MIT licenses.
Parallel processingThe CLI can start up to a specified number of child processes to process source files; its default is max(all - 1, 1).Spoon provides an AbstractParallelProcessor API for running processors in parallel, with the documentation advising against using more parallel processors than available cores.
Purposejscodeshift is a toolkit for building and running codemods over multiple JavaScript or TypeScript files.Spoon is an open-source library for analyzing, rewriting, transforming, and transpiling Java source code.

Plans

jscodeshift

No plans published.

jscodeshift pricing →

Spoon

  • Free and Open SourceFree

Spoon pricing →

In their own words

jscodeshift

jscodeshift is a free toolkit for developers who build and run codemods across JavaScript, TypeScript, or Flow projects. A codemod parses source into an abstract syntax tree, changes that tree, and generates source code. The runner applies a transform to each file and reports files that were not transformed. Its command line accepts a local transform, a URL, or paths from standard input. Parser choices include Babel, Babylon, Flow, TypeScript, and TSX, with Babel as the default. Users can set child-process limits, choose extensions, exclude paths with ignore patterns or configuration files, and preview changes in dry-run mode. The API supports traversal, filtering, finding, replacing, inserting, removing, and renaming syntax-tree nodes, with optional formatting during output. jscodeshift wraps recast to help preserve source style. Jest and Jasmine utilities support fixture or inline tests, and VS Code debugging guidance is documented. It runs on Linux, macOS, Windows, or self-hosted environments under an MIT license.

Visit jscodeshift.com

Spoon

Spoon is a free, open-source library for analyzing, rewriting, transforming, and transpiling Java source code. It parses source files into an abstract syntax tree (AST), then exposes APIs for inspecting and changing that model. Processors can perform source-level static analysis on selected AST element types, while architectural rules can be expressed as AST checks and run as JUnit tests in continuous integration. Transformation facilities cover instrumentation and refactoring, including helpers for local and generic variables and removing deprecated methods. Spoon can also provide shared analysis of binary and source code through CtClass objects as an alternative to Java reflection. The project supports Java source up to Java 25, but runtime requirements vary: Spoon 11.x needs JDK 17 or later, 10.x needs JDK 11 or later, and 9.x needs Java 8. It is available through Java, the command line, Maven, and Gradle, with a dependency JAR on Maven Central. Command-line use requires manual classpath handling and source dependencies specified with --source-classpath. Spoon is an official Inria project and an OW2 consortium member.

Visit spoon.gforge.inria.fr