{"id":25573,"library":"fast-flow-transform-linux-x64-gnu","title":"fast-flow-transform-linux-x64-gnu","description":"This is the native binary package for the x86_64-unknown-linux-gnu platform, part of the fast-flow-transform project. It provides a high-performance Flow type-stripping transform using the Hermes/FFT engine, with adapters for webpack, rspack, rsbuild, Parcel, Vite, Rollup, Rolldown, and esbuild. The current stable version is 0.0.3, released as an initial public version; the package is in early development with frequent releases. It differentiates from alternatives like flow-remove-types by leveraging native Rust bindings via napi-rs for faster stripping, and it integrates seamlessly with modern bundlers.","status":"active","version":"0.0.3","language":"javascript","source_language":"en","source_url":"https://github.com/jbroma/fast-flow-transform","tags":["javascript","esbuild","flowtype","parcel","rolldown","rollup","rsbuild","rspack","strip-flow"],"install":[{"cmd":"npm install fast-flow-transform-linux-x64-gnu","lang":"bash","label":"npm"},{"cmd":"yarn add fast-flow-transform-linux-x64-gnu","lang":"bash","label":"yarn"},{"cmd":"pnpm add fast-flow-transform-linux-x64-gnu","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"This is a platform-specific binary; the main package fast-flow-transform provides the CLI and programmatic API.","package":"fast-flow-transform","optional":false}],"imports":[{"note":"Primary entry point for programmatic usage.","symbol":"transformFlowCode","correct":"import { transformFlowCode } from 'fast-flow-transform'"},{"note":"Plugin classes are exported from adapter-specific subpaths.","wrong":"import { FastFlowTransformPlugin } from 'fast-flow-transform'","symbol":"FastFlowTransformPlugin","correct":"import { FastFlowTransformPlugin } from 'fast-flow-transform/adapters/webpack'"},{"note":"Adapter functions are exported from dedicated adapter modules.","wrong":"import { viteFastFlowTransform } from 'fast-flow-transform'","symbol":"viteFastFlowTransform","correct":"import { viteFastFlowTransform } from 'fast-flow-transform/adapters/vite'"}],"quickstart":{"code":"import { transformFlowCode } from 'fast-flow-transform';\n\nconst code = `// @flow\nfunction foo(x: ?number): string {\n  if (x) {\n    return String(x);\n  }\n  return 'default';\n}`;\n\nconst result = transformFlowCode(code, { sourceType: 'module' });\nconsole.log(result.code);\n// Output:\n// function foo(x) {\n//   if (x) {\n//     return String(x);\n//   }\n//   return 'default';\n// }","lang":"typescript","description":"Demonstrates programmatic Flow type stripping using the transformFlowCode function."},"warnings":[{"fix":"Upgrade Node.js to version 18 or later.","message":"The package requires Node.js >=18. Older versions will fail to install or run.","severity":"breaking","affected_versions":">=0.0.0"},{"fix":"Do not add this package directly to dependencies; rely on 'fast-flow-transform' as a dependency and it will install the appropriate binary.","message":"This is a platform-specific binary package; it will only install on x86_64 Linux with glibc (gnu). Other platforms must use their respective binary packages (e.g., linux-x64-musl, darwin-arm64) or the main fast-flow-transform package which will download the correct binary automatically.","severity":"gotcha","affected_versions":">=0.0.1"},{"fix":"N/A","message":"No breaking changes or deprecations yet in this early version.","severity":"deprecated","affected_versions":""}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install the main package instead: npm install fast-flow-transform","cause":"The binary package is not intended to be imported directly; it should be a transitive dependency of 'fast-flow-transform'.","error":"Error: Cannot find module 'fast-flow-transform-linux-x64-gnu'"},{"fix":"Ensure you have version 0.0.3 or later: npm install fast-flow-transform@latest","cause":"The adapter subpath exports may not be available in older versions (pre-0.0.3 or early releases).","error":"Module not found: Error: Package path ./adapters/webpack not exported from package fast-flow-transform"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}