meta/jscodeshift
View on GitHub ↗ ★ 10,042 JavaScript
A JavaScript codemod toolkit.
17 mentions on Hacker News by 15 people: 2 stories, 15 comments · first 2016-05-18 · latest 2024-06-16
20082026
-
It's more common than you think! Tools like https://github.com/facebook/jscodeshift , https://ts-morph.com/ , and https://ast-grep.github.io/ are the ones I'm more familiar with (since my day-to-day is TypeScript). When I led the…
comment by striking · 2024-06-16 · in Reformatting 100k Files at Google in 2011 -
…are the best solution to this, but this looks different for each language (eg, in JS there is https://github.com/facebook/jscodeshift ). I could make UI around that for listers to provide parts of the app that should replaced and buyers to…
comment by ecuaflo · 2023-02-22 · in Show HN: Starter.place – Gumroad for Starter Repos -
▲ 141
Launch HN: FlyCode (YC S22) – Let product teams edit web apps without codingstory by JakeVacovec · 2022-09-06 · 50 comments
-
…[2] https://docs.microsoft.com/visualstudio/code-quality/roslyn-... [3] one example: https://github.com/facebook/jscodeshift
comment by MarkSweep · 2022-08-17 · in Programming breakthroughs we need -
…[4] https://github.com/eslint/espree [5] https://github.com/benjamn/recast [6] https://github.com/facebook/jscodeshift [7] https://github.com/estools/escodegen
comment by kevlened · 2022-04-12 · in Show HN: Monocle – bidirectional code generation library -
The interesting stuff seems to be going on in https://github.com/facebook/jscodeshift
comment by tonyedgecombe · 2021-06-29 · in Tiny Treeshaker: JavaScript tree shaking in 200 lines of code -
…since it gives you nearly instant feedback and allows for a good amount of exploration. [0] https://github.com/facebook/jscodeshift/ [1] https://astexplorer.net/
comment by TheAceOfHearts · 2019-06-21 · in A New Bytecode Format for JavaScriptCore -
…(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 -
…Quite frankly, I don't see why more tools, libraries, and frameworks wouldn't do the same. [0] https://github.com/facebook/jscodeshift [1] https://github.com/reactjs/react-codemod
comment by TheAceOfHearts · 2018-02-16 · in Just what does “code as data” mean anyway? (2014) -
…make changes to the public API. [0] https://github.com/thejameskyle/the-super-tiny-compiler [1] https://github.com/facebook/jscodeshift
comment by TheAceOfHearts · 2017-09-02 · in My first fifteen compilers -
I find the idea of https://github.com/facebook/jscodeshift to be really useful. I've started writing small scripts using the TypeScript parser as a library to make meaningful improvements in our codebase. Since JavaScript is valid…
comment by stringham · 2017-08-24 · in Codemod – A library to assist with large-scale codebase refactoring -
Facebook also maintains a JS codemod tool that React uses: https://github.com/facebook/jscodeshift
comment by nathancahill · 2017-08-23 · in Codemod – A library to assist with large-scale codebase refactoring -
…). We also have https://github.com/benjamn/recast to help source to source transformations and https://github.com/facebook/jscodeshift .
comment by hzoo · 2017-02-13 · in From AST to Lossless Syntax Tree -
IMO a much better approach is JSCodeShift, which works based on the AST: https://github.com/facebook/jscodeshift
comment by NikhilVerma · 2016-08-24 · in Undebt: How We Refactored 3M Lines of Code -
…to that repo, not least because the code samples aren't munged to unintelligibility there. [1] https://github.com/facebook/jscodeshift
comment by throwanem · 2016-06-23 · in Write Code to Rewrite Your Code: jscodeshift -
▲ 2
JSCodeShift – write reusable, shareable codemodsstory by dedalus · 2016-06-22 · 0 comments
-
…clone and the cut to your liking to keep all those small details intact. Does that make sense? [1]: https://github.com/facebook/jscodeshift
comment by mxstbr · 2016-05-18 · in React-Boilerplate v3: The “JS Fatigue Antivenin” Edition