A full featured digger-container with find, XML, contracts and radio
A bundle of digger modules that make up the standard container API.
$ npm install digger-bundle
The module exports a digger-container but with the prototype augmented with find, selector and contract modules.
var Container = require'digger-bundle';// make containers as normalvar container = Container_digger:tag:'fruit'diggerwarehouse:'/api1'diggerpath:10// the prototype has the find api so we can searchvar results = containerfind'fruit';resultscountshouldequal1;// it also has contracts so we can selectvar contract = container'yo';contracturlshouldequal'/api1/select';contractmethodshouldequal'post';// and XML so we can parse XML stringsvar xmlcontainer = Bundle'<folder name="xml" />';containerappendxmlcontainer;var folderresult = containerfind'folder';folderresultcountshouldequal1;// radio is there so we can pub/subvar radio = containerradio;radiolisten'apple'packetshouldequal10;done;radioreceive'api1.10.apple' 10;