Registry / devops / amdlc
library0.1.9jsnpmunverified

A Node.js CLI tool (v0.1.9) that compiles AMD-style modules into a standalone library file with global namespace exposure, as opposed to app-specific loaders like RequireJS. It produces three files: a minified build (via Uglify-js), an inline source file, and a development file with synchronous module loading. Last updated in 2013; appears unmaintained. Use for legacy AMD projects only; modern projects should favor ES modules.

npm install amdlc
INSTALL
IMPORT
SIG · AMDLC
A
amdlc
devopsjavascriptv0.1.9
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.

amdlc
var amdlc = require('amdlc');
import amdlc from 'amdlc';
CommonJS-only; no ESM or TypeScript support.
amdlc.compile
amdlc.compile(options);
amdlc.compile.call(null, options);
The compile function is synchronous and expects a single options object.
amdlc
const amdlc = require('amdlc');
import { compile } from 'amdlc';
Default export provides the full module; named exports do not exist.

Compiles all AMD modules in src/ into a standalone library with three output files.

var amdlc = require("amdlc"); amdlc.compile({ from: "src/**/*.js", baseDir: "src", compress: true, expose: "public", excludeRootNamespaceFromPath: true, verbose: true, outputSource: "out/lib.js", outputMinified: "out/lib.min.js", outputDev: "out/lib.dev.js" });
amdlc --version
Debug
Known issues
gotchaAnonymous modules are not implemented; all modules must have a named define() call.
fix
Use named modules in AMD define('moduleName', [...]);
affects: <0.2
gotchaRelative module dependencies (e.g., ./MyModule) are not supported.
fix
Use absolute paths or configure baseDir correctly; use full module names.
affects: <0.2
deprecatedPackage has not been updated since 2013; relies on unmaintained Uglify-js version.
fix
Consider switching to ES modules with Rollup or Webpack.
affects: all
gotchaThe 'excludeRootNamespaceFromPath' option is misspelled (excludeRootNamespaceFromPath). Must match exactly.
fix
Use the exact option name as shown in documentation.
affects: all
Errors
Common errors & fixes
Error: Cannot find module 'amdlc'
Package not installed locally or globally.
fix
Run 'npm install -g amdlc' for CLI, or 'npm install amdlc' for programmatic use.
TypeError: amdlc.compile is not a function
Incorrect import (ESM import used instead of require).
fix
Use 'var amdlc = require("amdlc");'
Error: Anonymous modules not supported
Module defined without a name in define().
fix
Use define('moduleName', [...], function() { ... });
Upgrade
Version history
0.1.9latest on npm
Audit
Dependencies
uglify-jsrequiredRequired for minification of output files.
Agent activity
33 hits · last 30 days
node
30
OpenAI (training)
1
Resources
amdlc — npm install amdlc · libregistry