vaccine

CommonJS and AMD for libraries.

npm install vaccine
22 downloads in the last week
44 downloads in the last month

Vaccine

For an introduction to Vaccine, check out www.vaccinejs.com!

Some things that the intro doesn't cover:

You can also install vaccine with npm with npm install -g vaccine. That way you don't need to copy from the website. Run vaccine --help for info on the options.

In case it wasn't clear in the intro, you can develop with separate script tags, like so:

<!-- Must be before sources -->
<script src="/vaccine_dev.js"></script>

<!-- Sources can be in any order -->
<script src="/src/underscore.js"></script>
<script src="/src/underscore/arrays.js"></script>
<script src="/src/underscore/collections.js"></script>
<script src="/src/underscore/each.js"></script>
<script src="/src/underscore/functions.js"></script>
<script src="/src/underscore/objects.js"></script>
<script src="/src/underscore/utils.js"></script>

<!-- Get the main exports with "requireDev()" -->
<script>_ = requireDev();</script>

You can also use the dev_server.js to wrap CommonJS modules for the browser.

LICENSE

Vaccine is licensed under the MIT license. No, you don't need to have the license, or even a copyright comment, if you used the files generated by the binary or web site. Those are public domain.

npm loves you