Hacker GitHub

← All repos

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

Mentions per year 17 mentions · busiest year 2016 (4)
20082026
  1. 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
  2. …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…
  3. ▲ 141
    Launch HN: FlyCode (YC S22) – Let product teams edit web apps without coding
    story by JakeVacovec · 2022-09-06 · 50 comments
  4. …[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
  5. …[4] https://github.com/eslint/espree [5] https://github.com/benjamn/recast [6] https://github.com/facebook/jscodeshift [7] https://github.com/estools/escodegen
  6. The interesting stuff seems to be going on in https://github.com/facebook/jscodeshift
  7. …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
  8. …(particularly, their JS codebases), but for Python ( https://github.com/facebook/codemod , https://github.com/facebook/jscodeshift ).
  9. …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
  10. …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
  11. 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…
  12. Facebook also maintains a JS codemod tool that React uses: https://github.com/facebook/jscodeshift
  13. …). 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
  14. 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
  15. …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
  16. ▲ 2
    JSCodeShift – write reusable, shareable codemods
    story by dedalus · 2016-06-22 · 0 comments
  17. …clone and the cut to your liking to keep all those small details intact. Does that make sense? [1]: https://github.com/facebook/jscodeshift