Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@khanacademy/flow-to-ts
Advanced tools
[![Actions Status](https://github.com/Khan/flow-to-ts/workflows/Node%20CI/badge.svg)](https://github.com/Khan/flow-to-ts/actions) [![codecov](https://codecov.io/gh/Khan/flow-to-ts/branch/master/graph/badge.svg)](https://codecov.io/gh/Khan/flow-to-ts) [![n
Convert Flow code to TypeScript.
:warning: This is a WIP and many things still do not work properly. There may also be the odd regression from time to time as work progresses.
The goal of this project is to provide a tool that can translate 95% of Flow
to TypeScript while maintaining a high percentage of the existing type
information. We don't want to convert code and end up with everything using
any
. We also want to avoid having to make a lot of manual changes to files
afterwards, e.g. changing SyntheticEvent
to React.Event
.
yarn global add @khanacademy/flow-to-ts
flow-to-ts [options] <file globs>
For a comprehensive list of available options, please check out the CLI code.
https://flow-to-ts.netlify.com
any
when possible and provide a gentle warning%checks
), remove the syntax
and provide a forceful warning that the code in question will need a human
to convert it manually.Bug reports for converting Flow to TypeScript should include a link to the playground with an example of a minimal reproducible example of the bug.
Feature requests are welcome.
Please make sure there is a GitHub issue first before creating a pull request except for small things. Also, please sign our Contributor License Agreement.
Pull requests that fix a bug in the conversion code should include one or more test cases and should have 100% diff coverage.
git clone git@github.com:Khan/flow-to-ts.git
cd flow-to-ts
git submodule update --depth 1 --init -- babel
cd babel
yarn
cd ..
yarn
yarn test
FAQs
[![Actions Status](https://github.com/Khan/flow-to-ts/workflows/Node%20CI/badge.svg)](https://github.com/Khan/flow-to-ts/actions) [![codecov](https://codecov.io/gh/Khan/flow-to-ts/branch/master/graph/badge.svg)](https://codecov.io/gh/Khan/flow-to-ts) [![n
The npm package @khanacademy/flow-to-ts receives a total of 5,741 weekly downloads. As such, @khanacademy/flow-to-ts popularity was classified as popular.
We found that @khanacademy/flow-to-ts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.