{"library":"amdefine","type":"library","category":null,"description":"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.","language":"javascript","status":"abandoned","version":"1.0.1","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install amdefine","imports":["if (typeof define !== 'function') { var define = require('amdefine')(module) }","require('amdefine/intercept')","define(function (require) { var dep = require('dependency'); });"]},{"cmd":"yarn add amdefine","imports":[]},{"cmd":"pnpm add amdefine","imports":[]}],"homepage":null,"github":"https://github.com/jrburke/amdefine","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/amdefine","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/amdefine/compatibility"}}