Master
Xotic750 [email protected]
A modern iteration library.
The library is the single JavaScript file reiterate.js (or reiterate.min.js, which is reiterate.js minified).
It can be loaded via a script tag in an HTML document for the browser
<script src='./relative/path/to/reiterate.js'></script>
or as a CommonJS, Node.js or AMD module using require
.
For Node, put the reiterate.js file into the same directory as the file that is requiring it and use
var reiterate = require('./reiterate.js');
or put it in a node_modules directory within the directory and use require('reiterate)
.
To load with AMD loader libraries such as requireJS:
require(['reiterate'], function(reiterate) {
// Use reiterate here in local scope. No global reiterate.
});
The test directory contains the test scripts for reiterate.
The tests can be run with Node.
To test all the methods
$ npm test
I.e. minify.
On command line
$ npm run-script minify
will create lib/reiterate.min.js from lib/reiterate.js.
Feedback is welcome.
See LICENCE.