Skip to content

Array for Round-Robin DNS service, bengbenge, beng, beng. for funny

License

Notifications You must be signed in to change notification settings

ragingwind/node-bengbenge

Repository files navigation

bengbenge (뺑뺑이 in Korean) Build Status

Simple loop array for round-robin dns, beng, beng. for funny.

Install

$ npm install --save bengbenge

Usage

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

API

bengbenge(dns)

Pass base name of DNS will be route. It will return instance of loop array

LoopArray

Supports all of api of Array and append, clear, remove and beng

beng()

It will return next item in Array.

append([count], [array/object])

It supports a variety types of arguments.

License

MIT © Jimmy Moon

About

Array for Round-Robin DNS service, bengbenge, beng, beng. for funny

Resources

License

Stars

Watchers

Forks

Packages

No packages published