AMD

    0.0.3 • Public • Published

    AMD

    Asynchronous Module Definition support for node (a.k.a. define())

    See /examples.

    Install

    npm install AMD
    

    Example1

    // bar.js
    var define = require('node-amd').define;
    
    define(['http','path','fs'],function(http,path,fs) {
    	return {
    		hello: 'world'
    	};
    });
    

    Example2

    // baz.js
    var define = require('node-amd').define;
    
    define({
    	wtf: 'yeehaw'
    });
    

    Module use is seamless

    console.log(require('./bar'));
    console.log(require('./baz'));

    Keywords

    none

    Install

    npm i AMD

    DownloadsWeekly Downloads

    8

    Version

    0.0.3

    License

    none

    Last publish

    Collaborators

    • crabdude