amd-module
A little grave of my AMD loader
Last updated 6 years ago by leungwensen .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install amd-module 
SYNC missed versions from official npm registry.

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);
  });
});

Current Tags

  • 0.0.20151203                                ...           latest (6 years ago)

2 Versions

  • 0.0.20151203                                ...           6 years ago
  • 0.0.20151127                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2021 © npmmirror.com |