Apprequire is a project mainly written in JavaScript, based on the View license.
Implementation of browserside CommonJS specs (Modules, Packages and Transport)
AppRequire is a generic CommonJS Environment Framework implementation to test the philosopy of the proposed framework description.
The only thing that needs to be done to use CommonJS modules and packages in every browser/server side scripting program is including one of the following scripts depending on your environment:
There are two way's to startup the system, use the data-context attribute or by calling exports.boot(cfg)
data-context example (examples/datacontext):
<script data-context="{"location": "./modules/", "main": "program", "timeout": 2000}" src="../apprequire-debug.js"></script>
exports.boot example (examples/boot):
<script src="../apprequire-debug.js"></script>
<script>
exports.boot({
"location": "./modules/",
"main": "program",
"timeout": 2000
});
</script>
Future work: describing all the configuration options
Collaboration Platform: https://github.com/stolsma/apprequire
Collaboration Process:
You must explicitly license your patch by adding the following to the top of any file you modify in order for your patch to be accepted:
// - <GithubUsername>, First Last <Email>, Copyright YYYY, MIT License
This project would not be possible without the following:
This project uses code from:
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License
Copyright (c) 2011 Sander Tolsma
MIT License
Copyright (c) 2011 Sander Tolsma
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.