AMD Module Type Detector
JSON →The `get-amd-module-type` package, currently at version 6.0.2, is a utility for statically analyzing JavaScript code to determine the specific pattern of an Asynchronous Module Definition (AMD) module. It supports analysis from file paths, raw source code strings, or Abstract Syntax Tree (AST) nodes, returning one of several predefined AMD module types such as 'named', 'deps', 'rem' (CommonJS wrapper), 'factory', 'nodeps' (object literal), or 'driver' (requirejs-style `require`). The package maintains a steady release cadence, primarily updating dependencies and aligning with Node.js LTS cycles; for instance, version 6.0.0 introduced a breaking change by dropping support for Node.js versions prior to 18. This library is crucial for tools performing code transformation, linting, or dependency analysis in environments that still utilize AMD module formats.
Traffic · last 30 days ↑50% vs prev 7d
top countries 🇺🇸 United States · 🇫🇷 France · 🇨🇦 Canada · 🇩🇪 Germany · 🇮🇹 Italy