Skip to content
This repository was archived by the owner on Apr 28, 2019. It is now read-only.

sigod/browser.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

browser.js

example

index.html:

<!doctype html>
<html>
<head>
	<script src="/js/libs/browser.js" id="browserjs" data-base-url="/js/" data-main="app"></script>
</head>
<body></body>
</html>

js/app.js:

var a = require('./a');

console.log(a.func());

js/a.js:

var b = require('./b');

exports.func = function () {
	return b.func();
};

js/b.js:

exports.func = function () {
	return 'b.func';
};

About

CommonJS-like modules in a browser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published