You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

amd-module

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amd-module

A little grave of my AMD loader

0.0.20151203
latest
Source
npm
Version published
Weekly downloads
9
-10%
Maintainers
1
Weekly downloads
 
Created
Source

amd-module

A little grave of my AMD loader

installation

npm install amd-module --save

usage

browser

standalone mode

<script src="$path/to/this/package/dist/loader.js"></script>

using with CommonJS

require('amd-module/loader'); // then the 'define' function is available

here is a demo

nodejs (no loader available for now, not recomended)

var define = require('amd-module/define');

define('my/awesome/amd/module', [
  'amd-module/Module'
], function(
  Module
) {
  Module.on('module-meta-got', function(meta){
    console.log(meta);
  });
});

Keywords

amd

FAQs

Package last updated on 03 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts