Registry / devops / fast-flow-transform-darwin-arm64

fast-flow-transform-darwin-arm64

JSON →
library0.0.3jsnpmunverified

This is the native binary for the aarch64-apple-darwin platform for fast-flow-transform, a high-performance Flow stripping transform for JavaScript bundlers. Version 0.0.3 is current. The package is typically installed automatically as a dependency of the platform-agnostic fast-flow-transform package, but can be installed directly for edge cases. It provides native bindings for webpack, rspack, rsbuild, Parcel, Vite, Rollup, Rolldown, and esbuild adapters. Compared to alternatives like @babel/preset-flow or flow-remove-types, this package offers native performance via N-API and Hermes/FFT.

npm install fast-flow-transform-darwin-arm64
INSTALL
IMPORT
SIG · FAST-FLOW-TRANSFOR
F
fast-flow-transform-darwin-arm64
devopsjavascriptv0.0.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

fastFlowTransform
✓ import fastFlowTransform from 'fast-flow-transform'
✗ import fastFlowTransform from 'fast-flow-transform-darwin-arm64'
Do not import the platform-specific binary directly; use the parent package 'fast-flow-transform' which auto-selects the correct binary.
createFastFlowTransformPlugin
✓ import { createFastFlowTransformPlugin } from 'fast-flow-transform'
Named export for creating a bundler plugin. Available in the parent package.
transformSync
✓ import { transformSync } from 'fast-flow-transform'
✗ const { transformSync } = require('fast-flow-transform-darwin-arm64')
ESM-only; CJS require is not supported. Use the parent package.

Shows how to use fast-flow-transform with webpack loader and esbuild plugin. Note that the platform-specific package is not imported directly.

import fastFlowTransform from 'fast-flow-transform'; import webpack from 'webpack'; const config = { module: { rules: [ { test: /\.jsx?$/, use: { loader: 'fast-flow-transform/webpack', options: { // optional: specify file extensions extensions: ['.js', '.jsx'] } } } ] } }; // Or using the plugin for esbuild: import { createFastFlowTransformPlugin } from 'fast-flow-transform'; import * as esbuild from 'esbuild'; await esbuild.build({ entryPoints: ['src/index.js'], bundle: true, plugins: [createFastFlowTransformPlugin()] });
Debug
Known issues
gotchaDo not install or import this package directly. It is automatically installed as an optional dependency of 'fast-flow-transform'. Importing it directly will fail on non-Darwin ARM64 platforms.
fix
Install 'fast-flow-transform' instead and import from it.
affects: >=0.0.1
gotchaThe package is native-only and requires Node.js >=18. It will not work in browsers or older Node versions.
fix
Ensure Node.js >=18 LTS is used.
affects: >=0.0.1
Errors
Common errors & fixes
Error: Cannot find module 'fast-flow-transform-darwin-arm64'
Attempting to import or require the platform-specific package directly without it being installed.
fix
Install 'fast-flow-transform' instead, which will automatically install the correct binary as an optional dependency.
Module not found: Error: Can't resolve 'fast-flow-transform-darwin-arm64' in '/path/to/project'
Importing wrong package name in bundler configuration.
fix
Use 'fast-flow-transform' as the import source instead.
Upgrade
Version history
0.0.3latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
fast-flow-transform-darwin-arm64 — npm install fast-flow-transform-darwin-arm64 · libregistry