reopt
get options from arguments with multiple overloads
Installation
npm i reopt
Api
typeDefine templates
e.g.
param1: 'type1 type2' param2: 'type3' 'param1' 'param1 param2'
Usage
var Reopt = var reopt = url: 'string' opt: 'object' callback: 'function' 'url callback' 'url' 'opt callback' 'opt' { var opt = reopt console} /*=> { url: 'http://some.server.com/', callback: function() {}}*/