TypeScript Codemod

Open-source TypeScript projects categorized as Codemod

Top 12 TypeScript Codemod Projects

  • ts-migrate

    A tool to help migrate JavaScript code quickly and conveniently to TypeScript

  • Project mention: How to Do a TypeScript Conversion: an opinionated take on gradual conversions | news.ycombinator.com | 2023-11-04

    Airbnb converted many millions of lines gradually using automation and wrote about it:

    https://medium.com/airbnb-engineering/ts-migrate-a-tool-for-...

    And also open sourced the tooling:

    https://github.com/airbnb/ts-migrate

  • jest-codemods

    Codemods for migrating to Jest https://github.com/facebook/jest 👾

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • flow-to-typescript-codemod

    Codemod Stripe used to migrate 6.5m+ lines of code from Flow to TypeScript

  • Project mention: Leaving LinkedIn: Choosing Engineering Excellence over Expediency | news.ycombinator.com | 2024-03-05

    It's funny you say that because as someone in the large scale bubble when I read 2 million lines that didn't seem that large. Other companies of similar size are dealing with 5-10x larger web apps.

    Ex. https://stripe.com/blog/migrating-to-typescript

    Which talks about 3.7m lines at Stripe.

  • js-assistant

    120+ refactorings and code-assists for Visual Studio Code

  • astx

    Super powerful structural search and replace for JavaScript and TypeScript to automate your refactoring

  • ember-native-class-codemod

    A codemod-cli project for converting Ember objects to es6 native classes

  • eslint-plugin-prefer-arrow-functions

    Auto-fix plain Functions into Arrow Functions, in all cases where conversion would result in the same behaviour

  • Project mention: The Best ESLint Rules for React Projects | dev.to | 2023-09-15

    I prefer to set a standard for function declarations, so require use of arrow functions with an implicit return if possible. prefer-arrow-functions can do this for us, noting we also need to override some default ESLint rules:

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • ts2esm

    Transforms TypeScript imports and exports into ESM-compatible declarations.

  • Project mention: I made a tool that converts CJS to MJS in TypeScript projects | /r/typescript | 2023-11-02
  • css-modules-to-tailwind

    Tailwind css convert tool

  • Project mention: Convert CSS Modules to Tailwind CSS in JSX/TSX | /r/javascript | 2023-06-05
  • Subsecond

    A jQuery-like syntax for typescript codemod.

  • Project mention: [AskJS] Can anyone recommend a test runner with ESM and Custom Loader Support? | /r/javascript | 2023-06-11

    OP: If this is an avenue you feel like entertaining, here are some nice codemod tools that could ease the transition for you: CodeQue, Subsecond, and the old standard jscodeshift.

  • ember-no-implicit-this-codemod

    Template codemod for refactoring from `{{foo}}` to `{{this.foo}}`

  • jscodeshift-react-i18next

    jscodeshift transform that aims to extract hardocded strings in React applications

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

TypeScript Codemod related posts

  • Leaving LinkedIn: Choosing Engineering Excellence over Expediency

    1 project | news.ycombinator.com | 5 Mar 2024
  • Migrating Lines of Code to TypeScript

    1 project | news.ycombinator.com | 24 Dec 2023
  • How to Do a TypeScript Conversion: an opinionated take on gradual conversions

    2 projects | news.ycombinator.com | 4 Nov 2023
  • I made a tool that converts CJS to MJS in TypeScript projects

    1 project | /r/typescript | 2 Nov 2023
  • Why I quit open source

    2 projects | dev.to | 14 Sep 2023
  • [AskJS] Can anyone recommend a test runner with ESM and Custom Loader Support?

    3 projects | /r/javascript | 11 Jun 2023
  • [AskJS] Are there any tools to help automatically update imports when splitting typescript libraries in a Monorepo?

    3 projects | /r/javascript | 19 May 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 4 May 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source Codemod projects in TypeScript? This list will help you:

Project Stars
1 ts-migrate 5,310
2 jest-codemods 868
3 flow-to-typescript-codemod 663
4 js-assistant 115
5 astx 85
6 ember-native-class-codemod 66
7 eslint-plugin-prefer-arrow-functions 38
8 ts2esm 30
9 css-modules-to-tailwind 28
10 Subsecond 18
11 ember-no-implicit-this-codemod 16
12 jscodeshift-react-i18next 3

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com