Wrap specified JavaScript documents in the Universal Module Definition (UMD) allowing them to run in AMD, Require.js, CommonJS/Node.js, Ender and Vanilla environments automatically
UsageFor the documents that you want to be wrapped inside UMD, specify umd: true
inside your document's meta data header like so:
---
umd: true
---
// your javascript content
and it will be transformed into:
/*global define:false require:false */ (function (name, context, definition) { if (typeof module !== 'undefined' && module.exports) module.exports = definition(); else if (typeof define === 'function' && define.amd) define(definition); else if (typeof provide === 'function') provide(name, definition()); else context[name] = definition(); })('the-javascript-file-basename', this, function(){ // your javascript content });Install
Install this DocPad plugin by entering docpad install umd
into your terminal.
Discover the release history by heading on over to the HISTORY.md
file.
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
These amazing people are maintaining this project:
SponsorsThese amazing people have contributed finances to this project:
Become a sponsor!
ContributorsThese amazing people have contributed code to this project:
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
Unless stated otherwise all works are:
and licensed under:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4