Awesome
creatartis-base.js
Bundle of assorted utility definitions used in our Javascript projects. Can be loaded as a CommonJS module, with AMD, or with a <script>
tag (defines base
in the global scope). Tested in NodeJS, Firefox & Chrome using RequireJS.
Includes (among other things):
- OOP related functions like
declare
(similar to Dojo's). - A promises implementation for dealing with asynchronism, called
Future
(like Java's). - Functional style iterators and iterables.
- Pseudorandom number generators (Javascript's
Math.random
does not allow seeding) with a rich set of features. - A
Chronometer
, and objects for gatheringStatistics
.
It's still work in progress and not completely tested, and it will probably remain so for a long time (or ever).
License
Open source under an MIT license (see LICENSE.md).
Contact
Suggestions and comments are always welcome at leonardo.val@creatartis.com.