rs-module-lexer: Rust-powered ES Module Parser
JSON →rs-module-lexer is an ES module parser built with Rust, offering a drop-in compatible output data structure with `es-module-lexer`. Currently at version 2.8.0, it maintains an active release cadence with frequent minor updates. Its key differentiator is the ability to directly parse TypeScript (TS/TSX) and JSX files, unlike `es-module-lexer` which necessitates a prior transformation step. Powered by SWC, this library collapses the transform and parse steps into a single API call, streamlining module analysis in bundlers and build tools. It's designed for scenarios requiring fast and accurate identification of imports and exports across various JavaScript and TypeScript syntaxes, providing a consistent API and data format.
Traffic · last 30 days ↓44% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇳🇱 Netherlands