A utility library which provides a set of helpers acting as shortcuts for common programming tasks,
and support for functional programming. It complements the built-in Lua table library, making easier operations on arrays, lists,
collections, objects, through 98 odd functions.
Moses was deeply inspired by Underscore.js.
##Download & Installation ###Bash
git clone git://github.com/Yonaba/Moses.git
###Archive
- Zip: Latest stable 1.3.2.1 | current | all
- Tar.gz: Latest stable 1.3.2.1 | current | all
###LuaRocks
luarocks install moses
###MoonRocks
luarocks install --server=http://rocks.moonscript.org/manifests/Yonaba moses
##Usage## Put the file Moses.lua inside your project folder and call it using require command.
Note:
The full source moses.lua is quite heavy (approximately 50 kiB).
You can alternatively use the lighter minified version (16 kiB).
##Usage examples## Find a complete set of samples in moses.md
##Documentation##
A fully complete documentation, in HTML-format, can be found in Docs, and is also available for download.
##Credits and Acknowledgement##
- Jeremy Ashkenas, for the amazing Underscore.js
- Marcus Irven's and JTArchie's 1-to-1 ports that also inspired this.
- The amazing documentation tool LDoc (from Steve Donovan) used to generate the current HTML documentation.
##Specification
Specs tests have been included.
Run them using Telescope with the following command from the root foolder:
tsc -f specs/*
##License##
This work is under MIT-LICENSE
Copyright (c) 2012 Roland Yonaba
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.