Simple loop array for round-robin dns, beng, beng. for funny.
$ npm install --save bengbenge
var bengbenge = require('bengbenge');
var dns = bengbenge('newapp.herokuapp.com');
['app1', 'app2', 'app3', 'app4', 'app5']
dns.append(5, function (index, length) {
length++;
return {
name: 'site' + length,
url: length + '.newapp.herokuapp.com'
};
});
redirect(dns.beng().url);
For more information, Please refer to test/bengbenge_test.js
Pass base name of DNS will be route. It will return instance of loop array
Supports all of api of Array and append, clear, remove and beng
It will return next item in Array.
It supports a variety types of arguments.
MIT © Jimmy Moon