0.1.2 • Published 9 years ago

amder v0.1.2

Weekly downloads
5
License
ISC
Repository
github
Last release
9 years ago

amder

Simply AMD loader for Node

Installation

$ npm install amder

Usage

require('amder');

// Load AMD module
var x = require('amd-module');

// Do whatever you want
....

API

config(options)

加载器配置,目前只支持baseUrlpackages的配置

  • options {Object} 配置项
    • baseUrl {string=} 模块的基地址
    • packages {Object=} 第三方包信息