Lemonad
1 a functional JavaScript library
Lemonad is a JavaScript library supporting functional programming inspired by Clojure, ClojureScript, Functional JavaScript and Underscore. It is built on top of Underscore and as a result requires it be present.
2 getting
Lemonad can be installed via NPM by adding the following to your
package.json
file:
"dependencies": { "lemonad": ">= 0.2.5", }
You can also find the Lemonad source code on Github at http://github.com/fogus/lemonad.
3 including
Whether you use Lemonad via Node.js, within a web page or some other
method, including the lemonad.js
file defines a global variable
named L
that is used as the module for its capabilities.
On a web page, you'll need to do the following:
<script type="text/javascript" src="underscore.js"></script> <script type="text/javascript" src="lemonad.js"></script>
The explicit dependency on Underscore version 1.4.0 or greater is required for now.
4 end
Thanks! Remember, contibutions welcomed.