Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
doc
 
 
 
 
 
 
tmp
 
 
ts
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

axy.define()

An implementation of CommonJS modules system for browsers.

This is alpha-version

The library provides an environment for CommonJS modules. Tries to achieve compatibility with the basic mechanisms of Node.js.

The library is not engaged in assembling the project. See, for example, axy-define-asm.

Requirements

The library does not require any dependencies.

Compatibility

IE 9+ and normal browsers. IE 8 with es5-shim. IE 7 with json-js.

Developed on Node.js 0.12.

Installation

  1. Include a single file on the page. axy-define.js or compressed version.
<script src="axy-define.min.js"></script>
  1. PROFIT.

Synchronous / Asynchronous

The browser it is not server. Unlike node.js it can not just take a file from the local file system.

By default, it works as follows. All required modules and data statically included on the page load stage. The library creates the virtual file system and modules work with it as with a local FS.

If you need the dynamic loading of modules, you can define the asynchronous loader.

Contents

In addition:

About

A CommonJS implementation for browsers

Resources

License

You can’t perform that action at this time.