facebookarchive/codemod
View on GitHub ↗ ★ 4,131 Python archived
Codemod is a tool/library to assist you with large-scale codebase refactors that can be partially automated but still require human oversight and occasional intervention. Codemod was developed at Facebook and released as open source.
18 mentions on Hacker News by 16 people: 4 stories, 14 comments · first 2011-05-21 · latest 2025-10-08
20082026
-
…and advanced refactoring tools - things like tree-sitter or Facebooks's old codemod system https://github.com/facebookarchive/codemod I never used them, because the learning curve in them was steep enough that I never found the time to…
comment by simonw · 2025-10-08 · in Vibe engineering -
…once used Codemod [0] to migrate an old JS codebase. Would this be a use case for Ohm as well? [0] https://github.com/facebookarchive/codemod
comment by FrankyHollywood · 2023-10-31 · in Ohm: A library and language for building parsers, interpreters, compilers, etc -
Here you go https://github.com/facebookarchive/codemod
comment by imvetri · 2023-10-31 · in Automating Dead Code Cleanup -
…perform large scale refactoring as handled by Facebook, who would be contributing to this effort. https://github.com/facebookarchive/codemod It sounds like what you are describing is what’s known as poly fills which convert code into a…
comment by kkirsche · 2023-07-09 · in If PEP 703 is accepted, Meta can commit three engineer-years to no-GIL CPython -
https://github.com/facebookarchive/codemod Ironically this is also from Meta which would be contributing to this space increasing the expertise of achieving this result.
comment by kkirsche · 2023-07-09 · in If PEP 703 is accepted, Meta can commit three engineer-years to no-GIL CPython -
…an internal script at Facebook called codemod. It had a public open source fork if you are curious. https://github.com/facebookarchive/codemod
comment by charcircuit · 2023-01-03 · in Python 2 removed from Debian -
I think codemod is probably one such tool: https://github.com/facebook/codemod
comment by andy_ppp · 2021-01-10 · in Software Is Drowning the World -
…react libraries into crank, or close enough that only a few further manual changes are needed. [0] https://github.com/facebook/codemod/blob/master/README.md
comment by mattigames · 2020-04-18 · in Crank.js – Write JSX-driven components with functions, promises and generators -
…for large-scale refactoring in busy codebases (particularly, their JS codebases), but for Python ( https://github.com/facebook/codemod , https://github.com/facebook/jscodeshift ).
comment by MrSaints · 2018-09-13 · in Bowler: Safe code refactoring for modern Python -
…enumerated. There are some fairly sophisticated tools out there for doing both of these, e.g. https://github.com/facebook/codemod , and it'd be great to see more language-communities embrace (and improve) them IMO. If you manage to limit…
comment by Groxx · 2017-01-12 · in Backwards compatibility in Go (2015) -
https://github.com/facebook/codemod
comment by cjcenizal · 2016-07-23 · in PR converts the Three.js codebase to ES2015 modules -
https://github.com/facebook/codemod has been very helpful in the few times I needed it. Of course, a tool that really "understood" code (and multi-language projects) would be much better, but that is only happening next year (like Linux on…
comment by swah · 2014-08-17 · in Show HN: A Sublime Text plugin to move around and reform things -
…for Selenium or for CSS. It's pretty straightforward to convert an existing codebase with codemod: https://github.com/facebook/codemod If you're still curious about React, feel free to drop us a line at…
comment by peterhunt · 2013-06-24 · in Moving From Backbone To React -
I really like Facebook's codemod.py for stuff like that: https://github.com/facebook/codemod It has something like automatic and manual modes, so you can check (and fix) every diff during the replacement
comment by va1en0k · 2013-05-22 · in Go Replace - simple and fast search and replace tool for command line