{"library":"get-amd-module-type","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"6.0.2","tags":["javascript","module","type","amd","factory","form"],"last_verified":"Wed May 27","install":[{"cmd":"npm install get-amd-module-type","imports":["const getType = require('get-amd-module-type');","const getType = require('get-amd-module-type');\nconst type = getType.sync('path/to/file.js');","const getType = require('get-amd-module-type');\nconst type = getType.fromSource('define([\\'dep\\'], function(){});');"]},{"cmd":"yarn add get-amd-module-type","imports":[]},{"cmd":"pnpm add get-amd-module-type","imports":[]}],"homepage":null,"github":"https://github.com/dependents/node-get-amd-module-type","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/get-amd-module-type","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/get-amd-module-type/compatibility"}}