amdefine: AMD Define for Node.js

JSON →
library 1.0.1 ·javascript abandoned
verified May 27, 2026

amdefine is a JavaScript module that allows the Asynchronous Module Definition (AMD) `define()` API to operate within a Node.js environment without requiring a full AMD loader. This enables developers to create modules using the AMD format, primarily designed for browser environments, and subsequently run them in Node.js applications. The package, currently at version 1.0.1, has not seen updates in approximately nine years and is considered abandoned. It provides a shim for `define` via a conditional `require` snippet placed at the top of each AMD module, or through an `amdefine/intercept` module that automatically injects the shim globally. While AMD is largely superseded by CommonJS and ES Modules for modern Node.js development, amdefine remains relevant for integrating or migrating existing AMD codebases into a Node.js context, acting as a compatibility layer with minimal overhead.

total hits 28
actors 8 distinct systems
last hit 12h ago human
ByteDance
8
GPTBot
2
Script
1
CommonCrawl
1
Search engines
2
Humans
6

top countries 🇸🇬 Singapore · 🇩🇪 Germany · 🇺🇸 United States · VN · 🇨🇦 Canada