aleafs / ipmerge

a simple library to tidy and merge range dataset (such as ip table) to one

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Coverage Status

About

ipmerge is a simple library to tidy and merge range dataset (such as ip table) to one.

Usage

var ipmerge = require('ipmerge');

console.log(ipmerge.merge([{
  's' : 1, 'e' : 10, 'p' : 3, 'd' : 'ABC'
}, {
  's' : 7, 'e' : 20, 'p' : 2, 'd' : 'ABB'
}, {
  's' : 21, 'e' : 30, 'p' : 4, 'd' : 'ABB'
}], 1));
[
	{'s' : 1, 'e' : 6, 'd' : 'ABC'},
	{'s' : 7, 'e' : 30, 'd' : 'ABB'}
]

License

MIT

About

a simple library to tidy and merge range dataset (such as ip table) to one


Languages

Language:JavaScript 73.6%Language:Makefile 16.1%Language:Shell 10.3%