{"_id":"baby-workers","_rev":"25-3a51e0194633e99fdc597dd4e302a2f4","name":"baby-workers","description":"Execute and manage your code asynchronously with workers and promise.","dist-tags":{"latest":"2.0.4","beta":"2.0.1"},"versions":{"0.0.1":{"name":"baby-workers","version":"0.0.1","description":"Manage multi-asynchronous function or stack function with workers ","main":"workers.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/dobobaie/Workers.git"},"keywords":["javascript","nodejs","workers","asynchronous","function","stack","array","callback","complete","worker","save","get","js","manage","synchronous","asynch","synch"],"author":{"name":"dobobaie"},"license":"ISC","bugs":{"url":"https://github.com/dobobaie/Workers/issues"},"homepage":"https://github.com/dobobaie/Workers#readme","gitHead":"b69b5bf645dd17d3ab32912a8c59cb8f8843370c","_id":"baby-workers@0.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.6.0","_npmUser":{"name":"dobobaie","email":"dobobaie@hotmail.fr"},"dist":{"integrity":"sha512-AXshJP4gf4zeBxK8+bGPErt1JJ8u6ddSWgoEJBcy0nw19v/gOnk5cCJZ+WNjf7yZ5cPt15zrqrYXjs3AmcqrXQ==","shasum":"fe0083c8e184eed7eae254e34067329f6bc7ae85","tarball":"https://registry.npmjs.org/baby-workers/-/baby-workers-0.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFHuGesZu42vPKydW2GxJ2XfiGDQ+QyjygojyuZOvqyvAiEArjZqCVStCGx35goxGKhZG76o2ihNUiU7vW/DXwDPeMs="}]},"maintainers":[{"name":"dobobaie","email":"dobobaie@hotmail.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/baby-workers-0.0.1.tgz_1512663826711_0.9351783562451601"},"directories":{}},"0.0.2":{"name":"baby-workers","version":"0.0.2","description":"Manage multi-asynchronous function or stack with baby-workers ","main":"workers.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/dobobaie/baby-workers.git"},"keywords":["javascript","nodejs","workers","asynchronous","function","stack","array","callback","complete","worker","save","get","js","manage","synchronous","asynch","synch"],"author":{"name":"dobobaie"},"license":"ISC","bugs":{"url":"https://github.com/dobobaie/baby-workers/issues"},"homepage":"https://github.com/dobobaie/baby-workers#readme","gitHead":"45f05822b3b7878de3011e79f4c64cd3fe65e72d","_id":"baby-workers@0.0.2","_npmVersion":"5.5.1","_nodeVersion":"8.6.0","_npmUser":{"name":"dobobaie","email":"dobobaie@hotmail.fr"},"dist":{"integrity":"sha512-QSDSzv70AhWaARTGeTSFCatI/sL/LDaBdd4AD2sKyiJFSYMXdnmwM283/7E513YVDeWfEzMfYWPnEfmiqvP9Qw==","shasum":"fd46d86099f3c108661b386798fea03a336dc934","tarball":"https://registry.npmjs.org/baby-workers/-/baby-workers-0.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEf2yCcdEFWHZJ8HsQsxIW30XZMrcLOUgoODG6mVErDUAiEA/E9V2AClg1L1YN5mIWGK+kDOIQtrhSNIf4cdwom3jWw="}]},"maintainers":[{"name":"dobobaie","email":"dobobaie@hotmail.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/baby-workers-0.0.2.tgz_1512668910265_0.6971936915069818"},"directories":{}},"0.0.3":{"name":"baby-workers","version":"0.0.3","description":"Manage your functions asynchronously or as stack with baby-workers. You can also create worker for each element of an array or object (converted to array) they will be executed from the function.","main":"workers.min.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/dobobaie/baby-workers.git"},"keywords":["javascript","nodejs","workers","asynchronous","function","stack","array","callback","complete","worker","save","get","js","manage","synchronous","asynch","synch"],"author":{"name":"dobobaie"},"license":"ISC","bugs":{"url":"https://github.com/dobobaie/baby-workers/issues"},"homepage":"https://github.com/dobobaie/baby-workers#readme","gitHead":"f866e691fa01061230c401e7568afe94fb7eb9a3","_id":"baby-workers@0.0.3","_npmVersion":"5.5.1","_nodeVersion":"8.6.0","_npmUser":{"name":"dobobaie","email":"dobobaie@hotmail.fr"},"dist":{"integrity":"sha512-LTTcv3qHsayzxnKTgDVt+yaXJ0Je3BFfbbGTOoTWRoLfvuT8h1/r5esAA0bIUEHQehBqfWsYE5mGTpfElcFySg==","shasum":"7bc08a782a4a4994b855d00b571debb8fe6c29a1","tarball":"https://registry.npmjs.org/baby-workers/-/baby-workers-0.0.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIFvmtrBi9wXKLQZ3KWzKIjY/0YW7h36HDfF4rXdE+CwIhALEo5H1lIb1ty0sh7LUaT+LOMgDuL/4L9tOQp4ID4qMm"}]},"maintainers":[{"name":"dobobaie","email":"dobobaie@hotmail.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/baby-workers-0.0.3.tgz_1512671991061_0.3556830508168787"},"directories":{}},"0.0.4":{"name":"baby-workers","version":"0.0.4","description":"Manage your functions asynchronously or as stack with baby-workers. You can also create worker for each element of an array or object (converted to array) they will be executed from the function.","main":"workers.min.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/dobobaie/baby-workers.git"},"keywords":["javascript","nodejs","workers","asynchronous","function","stack","array","callback","complete","worker","save","get","js","manage","synchronous","asynch","synch"],"author":{"name":"dobobaie"},"license":"ISC","bugs":{"url":"https://github.com/dobobaie/baby-workers/issues"},"homepage":"https://github.com/dobobaie/baby-workers#readme","gitHead":"5f8c9edf471ea8959b8cfe8e64fbec813ebc2eb6","_id":"baby-workers@0.0.4","_npmVersion":"5.5.1","_nodeVersion":"8.6.0","_npmUser":{"name":"dobobaie","email":"dobobaie@hotmail.fr"},"dist":{"integrity":"sha512-3wLNbJ+pvtHc51c5fIv0O+3O+JtflcfDTmFViYWbNq04Nf/O/NQGSgRcMcFcnFfifHqKYi6m8W2HPg4E+bBklw==","shasum":"39581d1ff24eeb94c000f847a8b1f8cba3dfcd54","tarball":"https://registry.npmjs.org/baby-workers/-/baby-workers-0.0.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDz5JpUCoVwBJXsFzXxm43vR8OxLA9aff21gI6yc7lTTAIhANhd/jLferpV8sD4ywxDbZ3rEx5c+jkBpqeTKhIS1gaj"}]},"maintainers":[{"name":"dobobaie","email":"dobobaie@hotmail.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/baby-workers-0.0.4.tgz_1512698932511_0.40992458700202405"},"directories":{}},"0.0.5":{"name":"baby-workers","version":"0.0.5","description":"Manage your functions asynchronously or as stack with baby-workers. You can also create worker for each element of an array or object (converted to array) they will be executed from the function.","main":"workers.min.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/dobobaie/baby-workers.git"},"keywords":["baby-workers","baby","javascript","nodejs","workers","asynchronous","function","stack","array","callback","complete","worker","save","get","js","manage","timeout","interval","setTimeout","setInterval","synchronous","asynch","synch"],"author":{"name":"dobobaie"},"license":"ISC","bugs":{"url":"https://github.com/dobobaie/baby-workers/issues"},"homepage":"https://github.com/dobobaie/baby-workers#readme","gitHead":"ce95253db343f53b6c10056fbe23e88f65730ee6","_id":"baby-workers@0.0.5","_npmVersion":"5.5.1","_nodeVersion":"8.6.0","_npmUser":{"name":"dobobaie","email":"dobobaie@hotmail.fr"},"dist":{"integrity":"sha512-69UfuKPi3H/CKow+Si+zW/VFXMat9eZ6LzfHt6sEE7e/EuJjc+r1FKjl8KCIrf/uFBC6BOI1zLjPEroDdvwNsw==","shasum":"094e0cf24701575d2c4b9b588ae1325ed24277d7","tarball":"https://registry.npmjs.org/baby-workers/-/baby-workers-0.0.5.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbzm2OSv8W1kk9E9CwtDKfvFFrZ3MgS/BlmZO7f2isfAIhAP6lptGfEmjKDcAhGoNgnqRpC0n5yXekM5DLizW4UcHN"}]},"maintainers":[{"name":"dobobaie","email":"dobobaie@hotmail.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/baby-workers-0.0.5.tgz_1512699681266_0.39740509330295026"},"directories":{}},"0.0.6":{"name":"baby-workers","version":"0.0.6","description":"Manage your functions asynchronously or as stack with baby-workers.","main":"workers.min.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/dobobaie/baby-workers.git"},"keywords":["javascript","nodejs","workers","worker","error","manager","asynchronous","function","stack","array","callback","complete","worker","save","get","timeout","interval","callback","js","manage","synchronous","asynch","synch"],"author":{"name":"dobobaie"},"license":"ISC","bugs":{"url":"https://github.com/dobobaie/baby-workers/issues"},"homepage":"https://github.com/dobobaie/baby-workers#readme","gitHead":"0189da3f0358254abc1963684d5c3b990dde8319","_id":"baby-workers@0.0.6","_npmVersion":"5.5.1","_nodeVersion":"8.6.0","_npmUser":{"name":"dobobaie","email":"dobobaie@hotmail.fr"},"dist":{"integrity":"sha512-trnt1XlTp/YzSW4WxH0WyWgiSPoAyn+7XCH/2Us1zuYioWtJYCoXW5mc48ATO/IxJ+vpRBMFgM3EdXkmV5MkZA==","shasum":"ef87570b23824f3878e42ca0ccb55831066c4376","tarball":"https://registry.npmjs.org/baby-workers/-/baby-workers-0.0.6.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOomymUg001EVeFCGcQ6oDFeVBqs5nmKXdJCtRMWjsqwIhAN8VfZYNuhTu5akprmXJmYZLlv1YkfzbsXiwphTSez8w"}]},"maintainers":[{"name":"dobobaie","email":"dobobaie@hotmail.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/baby-workers-0.0.6.tgz_1513105230609_0.2744778108317405"},"directories":{}},"0.0.7":{"name":"baby-workers","version":"0.0.7","description":"Manage your functions asynchronously or as stack with baby-workers.","main":"workers.min.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/dobobaie/baby-workers.git"},"keywords":["javascript","nodejs","workers","worker","error","manager","asynchronous","function","stack","array","callback","complete","worker","save","get","timeout","interval","callback","js","manage","synchronous","asynch","synch"],"author":{"name":"dobobaie"},"license":"ISC","bugs":{"url":"https://github.com/dobobaie/baby-workers/issues"},"homepage":"https://github.com/dobobaie/baby-workers#readme","gitHead":"36d100d607c21bdf7133d7392b97d38efc205047","_id":"baby-workers@0.0.7","_npmVersion":"5.5.1","_nodeVersion":"9.1.0","_npmUser":{"name":"dobobaie","email":"dobobaie@hotmail.fr"},"dist":{"integrity":"sha512-RZr9H0IC67wYLTmlKzCoiRQ+53QBLwsKM+Rl9tfW1MYf0TxIXCe45iTFLMevOJ6VzzXMVxGHEQLfj6N0/Ck1Jg==","shasum":"45dba819ae941c825384d2b1d5933a012583dbb1","tarball":"https://registry.npmjs.org/baby-workers/-/baby-workers-0.0.7.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFGN5OmOKLikO3inLXMlRkR378kK9N07ehFXCvsojGfiAiAnAIbkFGSarlYXIpsgZ2zeB1Ag61P3J8QCnSgkwYXBMg=="}]},"maintainers":[{"name":"dobobaie","email":"dobobaie@hotmail.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/baby-workers-0.0.7.tgz_1513690483024_0.8981016017496586"},"directories":{}},"0.0.8":{"name":"baby-workers","version":"0.0.8","description":"Manage your functions asynchronously or as stack with baby-workers.","main":"workers.min.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/dobobaie/baby-workers.git"},"keywords":["javascript","nodejs","workers","worker","error","manager","asynchronous","function","stack","array","callback","complete","worker","save","get","timeout","interval","callback","js","manage","synchronous","asynch","synch"],"author":{"name":"dobobaie"},"license":"ISC","bugs":{"url":"https://github.com/dobobaie/baby-workers/issues"},"homepage":"https://github.com/dobobaie/baby-workers#readme","gitHead":"814d758c1476f4040671cf86812318f714fa721e","_id":"baby-workers@0.0.8","_npmVersion":"5.5.1","_nodeVersion":"9.1.0","_npmUser":{"name":"dobobaie","email":"dobobaie@hotmail.fr"},"dist":{"integrity":"sha512-gfbhrSKYdBxbU1OI6CGkrW/zhGPAqwNZsTABlHtQ2LadKScaL1Ket5zu3SwLAtZh/jii2cUd2aF4vkX07+Kyug==","shasum":"77eb637c3ddc7c7a2956a583bcff64ab91853957","tarball":"https://registry.npmjs.org/baby-workers/-/baby-workers-0.0.8.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBAB5i0QO/z1cKf/jsvRVwNbVQBEqhOih6Gycr91Cf2nAiBNYe3TmF+gaSi/iUxZbZsWdbAYI+JEmQZJhE9aYbLFIA=="}]},"maintainers":[{"name":"dobobaie","email":"dobobaie@hotmail.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/baby-workers-0.0.8.tgz_1513690603660_0.7110562128946185"},"directories":{}},"0.0.9":{"name":"baby-workers","version":"0.0.9","description":"Manage your functions asynchronously or as stack with baby-workers.","main":"workers.min.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/dobobaie/baby-workers.git"},"keywords":["javascript","nodejs","workers","worker","error","manager","asynchronous","function","stack","array","callback","complete","worker","save","get","timeout","interval","callback","js","manage","synchronous","asynch","synch"],"author":{"name":"dobobaie"},"license":"ISC","bugs":{"url":"https://github.com/dobobaie/baby-workers/issues"},"homepage":"https://github.com/dobobaie/baby-workers#readme","gitHead":"e125004a10f1b7f56fab9956436191d0da767456","_id":"baby-workers@0.0.9","_npmVersion":"5.5.1","_nodeVersion":"8.6.0","_npmUser":{"name":"dobobaie","email":"dobobaie@hotmail.fr"},"dist":{"integrity":"sha512-7COhl+1ZruggFIb5PHlKumVjIY85L7X4Hytr2rljRNeTgqMkzPXRltiT7/9c0MJZPM5rmCXIlK6u6VpR09KvnA==","shasum":"074b41eee766c54dfed90e64f5b7220913b1d579","tarball":"https://registry.npmjs.org/baby-workers/-/baby-workers-0.0.9.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICogokxoIFRvQOLlrKl2KPXvqYeB+VqtYBvVIBWRC7O1AiAgoczj8z45MyUPJG6KwfUgsXA4K1e8eCOqO65lSyyzww=="}]},"maintainers":[{"name":"dobobaie","email":"dobobaie@hotmail.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/baby-workers-0.0.9.tgz_1513722882842_0.8877502887044102"},"directories":{}},"1.0.0":{"name":"baby-workers","version":"1.0.0","description":"Manage your functions asynchronously or as stack with baby-workers.","main":"workers.min.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/dobobaie/baby-workers.git"},"keywords":["javascript","nodejs","workers","worker","error","manager","asynchronous","function","stack","array","callback","complete","worker","save","get","timeout","interval","callback","js","manage","synchronous","asynch","synch"],"author":{"name":"dobobaie"},"license":"ISC","bugs":{"url":"https://github.com/dobobaie/baby-workers/issues"},"homepage":"https://github.com/dobobaie/baby-workers#readme","gitHead":"c4764b5030027ba45e228ca0f90397a55052923b","_id":"baby-workers@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"9.1.0","_npmUser":{"name":"dobobaie","email":"dobobaie@hotmail.fr"},"dist":{"integrity":"sha512-CtYfoR825lo34xdGW1uCCszEzdXwN6UdxLPvlDQ53EjViSG9Pigpa6ofmmsyRNnraR37rZlvDwKSYX8HiSA5jw==","shasum":"30c0bef27d44ea8312b78b5a09ca89643c2d56e3","tarball":"https://registry.npmjs.org/baby-workers/-/baby-workers-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHURGI+HpvEvP4Y4174s2r8PO5B10wflJ9LdkGc7IZzRAiEAjwx9hwHzmxg1m8FTwg2qjypeURtLHLLS9ZKM7QWl/xU="}]},"maintainers":[{"name":"dobobaie","email":"dobobaie@hotmail.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/baby-workers-1.0.0.tgz_1513769607385_0.6760134522337466"},"directories":{}},"1.0.1":{"name":"baby-workers","version":"1.0.1","description":"Manage your functions asynchronously or as stack with baby-workers.","main":"workers.min.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/dobobaie/baby-workers.git"},"keywords":["javascript","nodejs","workers","worker","error","manager","asynchronous","function","stack","array","callback","complete","worker","save","get","timeout","interval","callback","js","manage","synchronous","asynch","synch"],"author":{"name":"dobobaie"},"license":"ISC","bugs":{"url":"https://github.com/dobobaie/baby-workers/issues"},"homepage":"https://github.com/dobobaie/baby-workers#readme","gitHead":"3a5d069a2c18dff6ced43aaa4a216be87865492a","_id":"baby-workers@1.0.1","_npmVersion":"5.5.1","_nodeVersion":"9.1.0","_npmUser":{"name":"dobobaie","email":"dobobaie@hotmail.fr"},"dist":{"integrity":"sha512-K1S+JCVWR1yZb6r8jrAYHh6mT4O5unvcXDgIJfh/0CgeBHSdsprkNXybJADbhef3hjLl5SlHwu4Tou7tKUURsg==","shasum":"e43dce248d48ae95651daf431e6af3df49d15327","tarball":"https://registry.npmjs.org/baby-workers/-/baby-workers-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQ8dXuKL+F10eUaaz0svZ02TrsI6v30LCKpPV6mxYLxwIgRShWE9Wzamx+xpaHYCjxlMZk9vAvLznWdC7Tf8iZ/Hc="}]},"maintainers":[{"name":"dobobaie","email":"dobobaie@hotmail.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/baby-workers-1.0.1.tgz_1513777229218_0.8909708166029304"},"directories":{}},"1.0.2":{"name":"baby-workers","version":"1.0.2","description":"Manage your functions asynchronously or as stack with baby-workers.","main":"workers.min.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/dobobaie/baby-workers.git"},"keywords":["javascript","nodejs","workers","worker","error","manager","asynchronous","function","stack","array","callback","complete","worker","save","get","timeout","interval","callback","js","manage","synchronous","asynch","synch"],"author":{"name":"dobobaie"},"license":"ISC","bugs":{"url":"https://github.com/dobobaie/baby-workers/issues"},"homepage":"https://github.com/dobobaie/baby-workers#readme","gitHead":"a5f44b40042de579922cdcd67b88a31532d01ea0","_id":"baby-workers@1.0.2","_npmVersion":"5.5.1","_nodeVersion":"9.1.0","_npmUser":{"name":"dobobaie","email":"dobobaie@hotmail.fr"},"dist":{"integrity":"sha512-ODoeKpd4PE4Egek3XYvBSwuKm5qjqqd4UAT2qi7Xb6dfCEOwn7jpLZMLAq6oPpF36zcIj5WgTt/qHeeVqEuT8g==","shasum":"81e9947d465631216b59de0818a1eca250d1820a","tarball":"https://registry.npmjs.org/baby-workers/-/baby-workers-1.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAwOOZXSuMviZAdBwyHr/zBlF/3Mm66G8RvAWxtU51XVAiAdWhN1SJ/pXmqMsP/A7dbOqILMuF0hGBhEBDTSjIshcw=="}]},"maintainers":[{"name":"dobobaie","email":"dobobaie@hotmail.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/baby-workers-1.0.2.tgz_1515060148281_0.7603984079323709"},"directories":{}},"1.0.3":{"name":"baby-workers","version":"1.0.3","description":"Manage your functions asynchronously or as stack with baby-workers.","main":"workers.min.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/dobobaie/baby-workers.git"},"keywords":["javascript","queue","line","process","func","limit","execution","nodejs","workers","worker","error","manager","asynchronous","function","stack","array","callback","complete","worker","save","get","timeout","interval","callback","js","manage","synchronous","asynch","thread","job","mutex","synch"],"author":{"name":"dobobaie"},"license":"ISC","bugs":{"url":"https://github.com/dobobaie/baby-workers/issues"},"homepage":"https://github.com/dobobaie/baby-workers#readme","gitHead":"1139a12b1ef1af550633d41c8ddbacacd993295a","_id":"baby-workers@1.0.3","_npmVersion":"5.5.1","_nodeVersion":"8.6.0","_npmUser":{"name":"dobobaie","email":"dobobaie@hotmail.fr"},"dist":{"integrity":"sha512-N5tEuv/MNJzKqBcJFOi2lbE7DlXqrPGCuthoynQz7MkGFVlm1rmS65XjhGHmdu3ykUZ3452Z3MIroxG96jruVQ==","shasum":"5c030f8ccbefdb6bcf64b25a934dcd0fd594c9c0","tarball":"https://registry.npmjs.org/baby-workers/-/baby-workers-1.0.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEu2djJ/x1K4DX1VtLJ3niJ4Slaz+Vf+0j5QTcfO0sccAiBQ9WjOVYpAe0AEt7bUAUn6z+aAnvNJWwOOkpDPSsI15A=="}]},"maintainers":[{"name":"dobobaie","email":"dobobaie@hotmail.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/baby-workers-1.0.3.tgz_1515181485231_0.068744852906093"},"directories":{}},"1.0.4":{"name":"baby-workers","version":"1.0.4","description":"Manage your functions asynchronously or as stack with baby-workers.","main":"workers.min.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/dobobaie/baby-workers.git"},"keywords":["javascript","queue","line","process","func","limit","execution","nodejs","workers","worker","error","manager","asynchronous","function","stack","array","callback","complete","worker","save","get","timeout","interval","callback","js","manage","synchronous","asynch","thread","job","mutex","synch"],"author":{"name":"dobobaie"},"license":"ISC","bugs":{"url":"https://github.com/dobobaie/baby-workers/issues"},"homepage":"https://github.com/dobobaie/baby-workers#readme","gitHead":"b338c45cc3524dfd1755c0dbb284ffbe45330bf8","_id":"baby-workers@1.0.4","_npmVersion":"5.5.1","_nodeVersion":"8.6.0","_npmUser":{"name":"dobobaie","email":"dobobaie@hotmail.fr"},"dist":{"integrity":"sha512-KHafDVrcgnC6zl5dIdjORRMQRboQiaw6kkhAE178Jo7KUGT7dWqBHSm8wPeVZuzR58wz+ywI3U2iitnVeSro2A==","shasum":"a7c07b5dc2bc92c34371ee36361d6b018aaf2ea5","tarball":"https://registry.npmjs.org/baby-workers/-/baby-workers-1.0.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEAaVJmAg0+9cy/+m5z3gBb3lZqgKWhxnfZdqts19kuiAiAOQ1r6f+08iH9VD6XEi5yk7rEOWJqhWz986UoPDNZe4w=="}]},"maintainers":[{"name":"dobobaie","email":"dobobaie@hotmail.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/baby-workers-1.0.4.tgz_1515198434881_0.9178180014714599"},"directories":{}},"1.0.5":{"name":"baby-workers","version":"1.0.5","description":"Manage your functions asynchronously or as stack with baby-workers.","main":"workers.min.js","scripts":{"test":"node examples/all.js"},"repository":{"type":"git","url":"git+https://github.com/dobobaie/baby-workers.git"},"keywords":["javascript","queue","line","process","func","limit","execution","nodejs","workers","worker","error","manager","asynchronous","function","stack","array","callback","complete","worker","save","get","timeout","interval","callback","js","manage","synchronous","asynch","thread","job","mutex","synch"],"author":{"name":"dobobaie"},"license":"ISC","bugs":{"url":"https://github.com/dobobaie/baby-workers/issues"},"homepage":"https://github.com/dobobaie/baby-workers#readme","gitHead":"48d549337d1901f7ac3e3f6f9b5265d85b95cb79","_id":"baby-workers@1.0.5","_npmVersion":"5.5.1","_nodeVersion":"8.6.0","_npmUser":{"name":"dobobaie","email":"dobobaie@hotmail.fr"},"dist":{"integrity":"sha512-U8DecicqJ8vbjfLMidP4+J3Z8xOgeF4w44N2llioG5agjzI7tILm4Wk9G739S/biDsoMck4Lnrsxd/Z/9HtHfA==","shasum":"c2f4d43981cfea125ae18d07efca90a079a41bd6","tarball":"https://registry.npmjs.org/baby-workers/-/baby-workers-1.0.5.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEEExw/oyvnvL6csGyD6hkWoEn18Kam9lzJpmg99bmeaAiBmoDUfxCXWii7t2rwZL9W6RXi19xXsKHZTUgm/tkwkjg=="}]},"maintainers":[{"name":"dobobaie","email":"dobobaie@hotmail.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/baby-workers-1.0.5.tgz_1515201167992_0.26872684876434505"},"directories":{}},"1.0.6":{"name":"baby-workers","version":"1.0.6","description":"Manage your functions asynchronously or as stack with baby-workers.","main":"workers.min.js","scripts":{"test":"node examples/all.js"},"repository":{"type":"git","url":"git+https://github.com/dobobaie/baby-workers.git"},"keywords":["javascript","queue","line","process","func","limit","execution","nodejs","workers","worker","error","manager","asynchronous","function","stack","array","callback","complete","worker","save","get","timeout","interval","callback","js","manage","synchronous","asynch","thread","job","mutex","synch"],"author":{"name":"dobobaie"},"license":"ISC","bugs":{"url":"https://github.com/dobobaie/baby-workers/issues"},"homepage":"https://github.com/dobobaie/baby-workers#readme","gitHead":"faa07ddda1f144c2a6b58f9da9bcc8ff926797eb","_id":"baby-workers@1.0.6","_npmVersion":"5.5.1","_nodeVersion":"9.1.0","_npmUser":{"name":"dobobaie","email":"dobobaie@hotmail.fr"},"dist":{"integrity":"sha512-fOkAmUFay88ZwunauE/R5PRha6w4zc1QqjwAIoHGJ2aOj15hM8QOMqKojEo/VCBZU+a2FcdLmCA+ZA7qNFdKNQ==","shasum":"5d23d86d8aeb34e909f1ca63e788547747596709","tarball":"https://registry.npmjs.org/baby-workers/-/baby-workers-1.0.6.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG6ffUNLzNQMmuJVvGimi27HEDYH7MAdwkDxYPbf8/R9AiEAo3v10/g/9CyrLEnkHp2YNyXf8MPNwvtWbM0lLJdwYtY="}]},"maintainers":[{"name":"dobobaie","email":"dobobaie@hotmail.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/baby-workers-1.0.6.tgz_1515492323431_0.22687141806818545"},"directories":{}},"1.0.7":{"name":"baby-workers","version":"1.0.7","description":"Manage your functions asynchronously or as stack with baby-workers.","main":"workers.min.js","scripts":{"test":"node examples/all.js"},"repository":{"type":"git","url":"git+https://github.com/dobobaie/baby-workers.git"},"keywords":["javascript","queue","line","process","func","limit","execution","nodejs","workers","worker","error","manager","asynchronous","function","stack","array","callback","complete","worker","save","get","timeout","interval","callback","js","manage","synchronous","asynch","thread","job","mutex","synch"],"author":{"name":"dobobaie"},"license":"ISC","bugs":{"url":"https://github.com/dobobaie/baby-workers/issues"},"homepage":"https://github.com/dobobaie/baby-workers#readme","gitHead":"631bf8e8be7d21e6e64288764ecc509fb28a34ab","_id":"baby-workers@1.0.7","_npmVersion":"5.5.1","_nodeVersion":"9.1.0","_npmUser":{"name":"dobobaie","email":"dobobaie@hotmail.fr"},"dist":{"integrity":"sha512-3WIdVB+xmRot3noIrSD8VJJhIrPuuXT9pSxfndbFN6pKGWbob4alG+okpeF4qIc7P/tCEbCyT8b19nV04157rw==","shasum":"8f505228fbb59ad309207c0f8b19b4e39eb35cd9","tarball":"https://registry.npmjs.org/baby-workers/-/baby-workers-1.0.7.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGO8lrE4rskrL42BuM1wtkEZ8+q6X+Ia6dj0XKjvyUmgIhAO+eLeLrkH/hNbym3H4LrB9IBzpwu8PtDNr9KMoRSlBV"}]},"maintainers":[{"name":"dobobaie","email":"dobobaie@hotmail.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/baby-workers-1.0.7.tgz_1515495691066_0.3397132018581033"},"directories":{}},"1.0.71":{"name":"baby-workers","version":"1.0.71","description":"Manage your functions asynchronously or as stack with baby-workers.","main":"workers.min.js","scripts":{"test":"node examples/all.js"},"repository":{"type":"git","url":"git+https://github.com/dobobaie/baby-workers.git"},"keywords":["javascript","queue","line","process","func","limit","execution","nodejs","workers","worker","error","manager","asynchronous","function","stack","array","callback","complete","worker","save","get","timeout","interval","callback","js","manage","synchronous","asynch","thread","job","mutex","synch"],"author":{"name":"dobobaie"},"license":"ISC","bugs":{"url":"https://github.com/dobobaie/baby-workers/issues"},"homepage":"https://github.com/dobobaie/baby-workers#readme","gitHead":"4eba223f444e9d61fdf9847e4137b0628b127c55","_id":"baby-workers@1.0.71","_npmVersion":"5.5.1","_nodeVersion":"9.1.0","_npmUser":{"name":"dobobaie","email":"dobobaie@hotmail.fr"},"dist":{"integrity":"sha512-ieBcSweR1iUFuA+oXH1I861iI1+krF+ENbHkH1HJRaLWk/I1okYjMVu/wGr6dc2mv1JzZfU/DFCRXZgh/K6nXw==","shasum":"d043b5ad3694443f62d1b48f8e6c83d88416d219","tarball":"https://registry.npmjs.org/baby-workers/-/baby-workers-1.0.71.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCq07pMMSFNvaPfwRTLuFO7EnHGgt3NBMjQjpZ7K0tDrgIgeNwU6n50300fhyLUG501G7i8RgJnQO8fCoW0Lf87JPk="}]},"maintainers":[{"name":"dobobaie","email":"dobobaie@hotmail.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/baby-workers-1.0.71.tgz_1517916403073_0.3884947046171874"},"directories":{}},"2.0.0":{"name":"baby-workers","version":"2.0.0","description":"Manage your functions asynchronously or as stack with baby-workers and promises.","main":"workers.min.js","scripts":{"test":"node examples/all.js"},"repository":{"type":"git","url":"git+https://github.com/dobobaie/baby-workers.git"},"keywords":["promises","javascript","queue","line","process","func","limit","execution","nodejs","workers","worker","error","manager","asynchronous","function","stack","array","callback","complete","worker","save","get","timeout","interval","callback","js","manage","synchronous","async","thread","job","mutex","sync"],"author":{"name":"dobobaie"},"license":"ISC","bugs":{"url":"https://github.com/dobobaie/baby-workers/issues"},"homepage":"https://github.com/dobobaie/baby-workers#readme","gitHead":"cdfa930eccad09ea0fc407926a445ac88d423e95","_id":"baby-workers@2.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.6.0","_npmUser":{"name":"dobobaie","email":"dobobaie@hotmail.fr"},"dist":{"integrity":"sha512-+gVdqIcnn/L5lSJldfd8Y19y0bLeh0EXxce/hOooaPvaKW8nPtt34+76IGBi4HWlapJ5js6SOXhtJFSqLIG0gQ==","shasum":"6751efa8e44c37f190b71c4c6dbf1b01862ea2d0","tarball":"https://registry.npmjs.org/baby-workers/-/baby-workers-2.0.0.tgz","fileCount":17,"unpackedSize":54697,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICEBpPj5t2GWcv9t07qkRxaEJSRkqmpP+ZaxjpjQ+qxYAiA1TXjQTsLtN6GRVpBkDpwOgfqlvee3jsGu8CQes5DmyA=="}]},"maintainers":[{"name":"dobobaie","email":"dobobaie@hotmail.fr"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/baby-workers_2.0.0_1518087961828_0.2083490574236686"},"_hasShrinkwrap":false},"2.0.1":{"name":"baby-workers","version":"2.0.1","description":"Manage your functions asynchronously or as stack with baby-workers and promise.","main":"workers.min.js","scripts":{"test":"node examples/all.js"},"repository":{"type":"git","url":"git+https://github.com/dobobaie/baby-workers.git"},"keywords":["promise","javascript","queue","line","process","func","limit","execution","nodejs","workers","worker","error","manager","asynchronous","function","stack","array","callback","complete","worker","save","get","timeout","interval","callback","js","manage","synchronous","async","thread","job","mutex","sync"],"author":{"name":"dobobaie"},"license":"ISC","bugs":{"url":"https://github.com/dobobaie/baby-workers/issues"},"homepage":"https://github.com/dobobaie/baby-workers#readme","readme":"# Workers Javascript\r\nExecute and manage your code asynchronously with workers, like promise, execute each element of an array or a simple element in callback.\r\nLike thread, you can start and stop your jober where and when you want in your code. You can limit the number of jobers or execute it like a stack.\r\nDo everything asynchronously with baby-workers !\r\n\r\n## Install\r\n\r\n``` bash\r\nnpm install --save baby-workers\r\n\r\n``` \r\n\r\n## Last release\r\n\r\nVersion | Change log | Compatibility\r\n---- | --------- | -----------\r\n2.0.0 | Add map, set, push (data), next, exec, reply and getError functions + fix some bugs | >= 2.0.0\r\n2.0.0 beta | Add promise after run/timeout/interval/stack function + add then/catch callback + catch error in run/timeout/interval/stack callback + add feature to create worker without name | >= 2.0.0\r\n1.0.71 | Add getNodes function | <= 1.0.71\r\n\r\n## How is it works ?\r\n\r\nThree entites :\r\n* Root (instancied at the start of baby-wokers is the root level)\r\n* Parent (parent instance is created after a worker.create to create nodes)\r\n* Node (node instance created from parent is an independent function it can create a parent too).\r\n\r\n[Root] -> worker.create(...) -> [Parent] -> .map(['...', '...']) -> .run() -> [Node] + [Node] \r\n\r\n## Usage\r\n\r\nFirst create a new parent => workers.create(name or function, function)\r\nNext set data or map arrary => workers.name.map([...])\r\nThen run parent to create nodes => workers.name.run()\r\n\r\n``` js\r\nworkers.create('MyWorker', (worker, elem) => {\r\n    console.log('[=>', elem);\r\n    worker.pop();\r\n}).map(['a', 'b', 'c', 'd']).run().then(() => { // then is a promise\r\n    console.log('Then');\r\n}).catch(() => { // catch is a promise\r\n    console.log('Catch');\r\n});\r\n\r\nworker.then(() => { // then is not a promise\r\n    console.log('Then');\r\n}).catch(() => { // catch is not a promise\r\n    console.log('Catch');\r\n}).complete(() => {\r\n    console.log('Complete');\r\n});\r\n\r\n```\r\n\r\nMore examples at the end of README.md file.\r\n\r\n## Demos\r\n* [Basic](https://raw.githubusercontent.com/dobobaie/baby-workers/master/examples/basic.js)\r\n* [Promise](https://raw.githubusercontent.com/dobobaie/baby-workers/master/examples/promise.js)\r\n* [Stack](https://raw.githubusercontent.com/dobobaie/baby-workers/master/examples/stack.js)\r\n* [Simulate adding/removing worker](https://raw.githubusercontent.com/dobobaie/baby-workers/master/examples/add_remove_worker.js)\r\n* [Set timeout](https://raw.githubusercontent.com/dobobaie/baby-workers/master/examples/timeout.js)\r\n* [Set interval](https://raw.githubusercontent.com/dobobaie/baby-workers/master/examples/interval.js)\r\n* [Push](https://raw.githubusercontent.com/dobobaie/baby-workers/master/examples/push.js)\r\n* [Adding data](https://raw.githubusercontent.com/dobobaie/baby-workers/master/examples/data.js)\r\n* [Cancel worker](https://raw.githubusercontent.com/dobobaie/baby-workers/master/examples/cancel.js)\r\n* [Limit workers with a queue](https://raw.githubusercontent.com/dobobaie/baby-workers/master/examples/limit.js)\r\n* [Set error](https://raw.githubusercontent.com/dobobaie/baby-workers/master/examples/error.js)\r\n* [All](https://raw.githubusercontent.com/dobobaie/baby-workers/master/examples/all.js)\r\n\r\n## Functions\r\n\r\nName | Available | Description | Additionnal\r\n---- | --------- | ----------- | -----------\r\ncreate(name: `string` or callback: `function`, callback: `function`) : `currentWorker` | ALL | Create a new parent\r\nrun() : `Promise` | PARENT | Create and run nodes\r\nstack() : `Promise` | PARENT | Create and run nodes like a stack\r\nnext() : `Promise` | PARENT | Create and run the next node\r\nexec(idNode: `number`) : `Promise` | PARENT | Create and run a specific node\r\nreply(idNode: `number = undefined`) : `Promise` | PARENT | Reply a node or all nodes if idNode is undefined\r\ndelay(time: `number = 1`) : `Promise` | PARENT | Create and run nodes in a timeout\r\ninterval(time: `number = 1000`) : `Promise` | PARENT | Create and run nodes in an interval | stop() : `currentWorker`, NODE, Stop interval \r\nset(data:  `any`) : `currentWorker` | PARENT | Set data it will be used to create node\r\nmap(data:  `array`) : `currentWorker` | PARENT | Set array it will be used to create nodes for each element in the array\r\npush(data: `any`) : `currentWorker` | PARENT | Push a new data to create a new node\r\ncancel() : `currentWorker` | PARENT | Cancel parent worker\r\nlimit(maxWorkers: `number = 0`, extra: `boolean = false`) | ALL | Limit the number of workers as running (`maxWorkers = 0` = unlimited or take limit of parent - `maxWorkers = -1` = unlimited and ignore parent). If `extra = true` is true so maxWorkers is taken ONLY if parent workers limit is full\r\npop() : `currentWorker` | NODE | Stop current node\r\naddWorker() : `currentWorker` | ALL | Add virtual worker in current worker (it used for external asynch function) \r\nremoveWorker() : `currentWorker` | ALL | Remove virtual worker in current worker (it used for external asynch function) \r\ncomplete(callback: `function`, removeAfterCall: `boolean`) : `currentWorker` | ALL | Call function when current process is finish (node, parent => when childrens are finish or root => when childrens are finish) \r\nthen(callback: `function`, removeAfterCall: `boolean`) : `currentWorker` | ALL | Call function when current process is finish without error\r\ncatch(callback: `function`, removeAfterCall: `boolean`) : `currentWorker` | ALL | Call function when current process is finish with error \r\nerror(error: `string`) : `currentWorker` | ALL | Set error in current worker and all parent in the tree\r\nsave(data: `any`) : `currentWorker` | ALL | Save any data in current worker (node, parent or root) \r\n_save(data: `any`) : `currentWorker` | ALL | Save any data in current worker (node, parent or root) from root\r\nget() : `any` | ALL | Get data previously saved \r\n_get() : `any` | ALL | Get data previously saved from root \r\nroot() : `parentWorker` | NODE | Get root/parent of current worker \r\nparent(name: `string`, type: `string = 'parent'`) : `parentWorker OR nodeWorker` | PARENT & NODE | Get any parent/node going up the tree \r\nparentNode(name: `string`) : `parentWorker OR nodeWorker` | PARENT & NODE | Get any node going up the tree \r\nnode(key: `number`) : `nodeWorker` | PARENT | Return a node from parent \r\ngetId() : `number` | NODE | Return id/key/index of node\r\ngetStatus() : `string` | ALL | Return global status\r\ngetError : `string` | ALL | Return error\r\ngetNodeStatus() : `string` | NODE | Return the status of node\r\ngetName() : `string` | ALL | Return name\r\ngetType() : `string` | ALL | Return type of current worker\r\ngetNodes() : `array` | PARENT | Return all nodes\r\ngetLimit() : `number` | ALL | Return the limit of workers allowed in current workers\r\ngetWorkers() : `number` | ALL | Return the number of workers\r\ngetWaitingWorkers() : `number` | ALL | Return the number of waiting workers\r\ngetRunningWorkers() : `number` | ALL | Return the number of running workers\r\ngetTotalWorkers() : `number` | ALL | Return the total number of workers (nodes included)\r\ngetTotalWaitingWorkers() : `number` | ALL | Return the total number of workers (nodes included)\r\ngetTotalRunningWorkers() : `number` | ALL | Return the total number of workers (nodes included)\r\n","readmeFilename":"README.md","gitHead":"aee2af5a48ceafadd8d0e2a6750e4d1bb5361124","_id":"baby-workers@2.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.6.0","_npmUser":{"name":"dobobaie","email":"dobobaie@hotmail.fr"},"dist":{"integrity":"sha512-9E7MSJwHUP/mSm8HdTB6KO43ASlm+CKndVVpdXnJ3EQrpyJjOp48SNtj0tj+MGXuH8+4aDKOdepg7Y9/Qm/uzA==","shasum":"fa3347c56fb30ef7e8de75db58095a6416da605b","tarball":"https://registry.npmjs.org/baby-workers/-/baby-workers-2.0.1.tgz","fileCount":18,"unpackedSize":53679,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDHN3dp7BrZNxd+cqrOg2jpGFWHLW8YMgbtj/RVpGa4HAiEA1Soycd6JrP9J02E1IsbLNxSGbN/UI1+Sy+3yk2dmFP0="}]},"maintainers":[{"name":"dobobaie","email":"dobobaie@hotmail.fr"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/baby-workers_2.0.1_1518780518429_0.4533688486244396"},"_hasShrinkwrap":false},"2.0.2":{"name":"baby-workers","version":"2.0.2","description":"Execute and manage your code asynchronously with workers, like promise, execute each element of an array or a simple element in callback.","main":"workers.min.js","scripts":{"test":"node examples/all.js"},"repository":{"type":"git","url":"git+https://github.com/dobobaie/baby-workers.git"},"keywords":["promise","javascript","queue","line","process","func","limit","execution","nodejs","workers","worker","error","manager","asynchronous","function","stack","array","callback","complete","worker","save","get","timeout","interval","callback","js","manage","synchronous","async","thread","job","mutex","sync"],"author":{"name":"dobobaie"},"license":"ISC","bugs":{"url":"https://github.com/dobobaie/baby-workers/issues"},"homepage":"https://github.com/dobobaie/baby-workers#readme","gitHead":"bbea4d96bee78b9848f9cb0420e327ce2ac0d68a","_id":"baby-workers@2.0.2","_npmVersion":"5.5.1","_nodeVersion":"8.6.0","_npmUser":{"name":"dobobaie","email":"dobobaie@hotmail.fr"},"dist":{"integrity":"sha512-71KbDYKK6vxZpd28M/obq6NtSjWPSjfdZWvqN3Mp6rrkyBbGK78vQ38J3hqyYir5GhWAshx0QJcGxaP/It2zlg==","shasum":"16288c448b8066c713ee2aa2caca2c81eaa505ee","tarball":"https://registry.npmjs.org/baby-workers/-/baby-workers-2.0.2.tgz","fileCount":20,"unpackedSize":59100,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpT6llwnau3pvrtyyTNbRa2vCGFudOIK+ChnamKNiWmwIgFaUhNcEYJaKMQKtH5EHCCE8EY1QTgGb0ofgflIwuBTo="}]},"maintainers":[{"name":"dobobaie","email":"dobobaie@hotmail.fr"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/baby-workers_2.0.2_1519083393315_0.10879400353639057"},"_hasShrinkwrap":false},"2.0.3":{"name":"baby-workers","version":"2.0.3","description":"Execute and manage your code asynchronously with workers, like promise, execute each element of an array or a simple element in callback.","main":"workers.min.js","scripts":{"test":"node examples/all.js"},"repository":{"type":"git","url":"git+https://github.com/dobobaie/baby-workers.git"},"keywords":["promise","javascript","queue","line","process","func","limit","execution","nodejs","workers","worker","error","manager","asynchronous","function","stack","array","callback","complete","worker","save","get","timeout","interval","callback","js","manage","synchronous","async","thread","job","mutex","sync"],"author":{"name":"dobobaie"},"license":"ISC","bugs":{"url":"https://github.com/dobobaie/baby-workers/issues"},"homepage":"https://github.com/dobobaie/baby-workers#readme","gitHead":"45a91b2a2b07a2d5b43eb7ad83609c6d8b314fe3","_id":"baby-workers@2.0.3","_npmVersion":"5.5.1","_nodeVersion":"9.1.0","_npmUser":{"name":"dobobaie","email":"dobobaie@hotmail.fr"},"dist":{"integrity":"sha512-yexje1j+v7THgEyz2eZhW03cceNMz2qE9SBGUuCBIEPlWrzeSOFBmOx3lK9ESTa7MvDJ8m4JALRzhXMsFay8dQ==","shasum":"f6d6abb318c7b67b1bcc175a281caff0aa772c3e","tarball":"https://registry.npmjs.org/baby-workers/-/baby-workers-2.0.3.tgz","fileCount":20,"unpackedSize":57951,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBaDyUOY71dHild9LPSSek2Jd0Rk0qoufM9PjPaGSxiQIhANttM7dj54i33a14gz6pchqn8+PF8PDtsCtS7T2cZW4S"}]},"maintainers":[{"name":"dobobaie","email":"dobobaie@hotmail.fr"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/baby-workers_2.0.3_1519142550945_0.41761782249850676"},"_hasShrinkwrap":false},"2.0.4":{"name":"baby-workers","version":"2.0.4","description":"Execute and manage your code asynchronously with workers and promise.","main":"workers.min.js","scripts":{"test":"node examples/all.js"},"repository":{"type":"git","url":"git+https://github.com/dobobaie/baby-workers.git"},"keywords":["promise","javascript","queue","line","process","func","limit","execution","nodejs","workers","worker","error","manager","asynchronous","function","stack","array","callback","complete","worker","save","get","timeout","interval","callback","js","manage","synchronous","async","thread","job","mutex","sync"],"author":{"name":"dobobaie"},"license":"ISC","bugs":{"url":"https://github.com/dobobaie/baby-workers/issues"},"homepage":"https://github.com/dobobaie/baby-workers#readme","gitHead":"e1ea8d6885715947c6ca4d19207a03adb4b18281","_id":"baby-workers@2.0.4","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"dobobaie","email":"dobobaie@hotmail.fr"},"dist":{"integrity":"sha512-8SmPqBGtHWBIt4LkzavDiJ0IC8OhKMvJlfukVo0UmhJo2BTFWKuZLIsZCBps42wHIpQz4yzWennmGS3h2uvLXg==","shasum":"5b7b222b19c0b571654e607b3f2b08b181c5fad7","tarball":"https://registry.npmjs.org/baby-workers/-/baby-workers-2.0.4.tgz","fileCount":7,"unpackedSize":46571,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBOKwOaDF0JyFZpswwC+8KM2oJH6yrB9OpKr45GqA9p+AiEA/sTgnRm/H4A2xD2somENWOMD04vTEZrLJ1fIHLnN0J0="}]},"maintainers":[{"name":"dobobaie","email":"dobobaie@hotmail.fr"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/baby-workers_2.0.4_1520245132928_0.9228543882728828"},"_hasShrinkwrap":false}},"readme":"# Baby workers Javascript\r\nExecute and manage your code asynchronously with workers and promise. Execute each element of an array or a simple element in callback.\r\nLike thread, you can start and stop your jober where and when you want in your code. You can limit the number of jobers or execute it like a stack.\r\nDo everything asynchronously with baby-workers !\r\n\r\n## Install\r\n\r\n``` bash\r\nnpm install --save baby-workers\r\n\r\n``` \r\n\r\n## How is it works ?\r\n\r\nThree entites :\r\n* Root (instancied at the start of baby-wokers is the root level)\r\n* Parent (parent instance is created after a worker.create to create nodes)\r\n* Node (node instance created from parent is an independent function it can create a parent too).\r\n\r\n[Root] -> worker.create(...) -> [Parent] -> .map(['...', '...']) or .set(...) -> .run() or .stack() or [...] -> [Node] + [Node] \r\n\r\n## Usage\r\n\r\n* First create a new parent with workers.create(name or function, function)\r\n* Next set data or map array with workers.name.map([...]) or workers.name.set(...)\r\n* Then run parent to create nodes with workers.name.run() or workers.name.stack() or [...]\r\n\r\n``` javascript\r\nworkers.create('MyWorker', (worker, elem) => {\r\n    setTimeout(() => {\r\n        console.log('|=>', elem);\r\n        worker.pop();\r\n    }, (~~(Math.random() * 1000)));\r\n}).map(['a', 'b', 'c', 'd']).limit(2).run().then(() => { // then is a promise\r\n    console.log('Then MyWorker');\r\n}).catch(() => { // catch is a promise\r\n    console.log('Catch MyWorker');\r\n});\r\n\r\nworkers.create('MyWorker2', (worker, elem) => {\r\n    setTimeout(() => {\r\n        console.log('|=>', elem);\r\n        worker.pop();\r\n    }, (~~(Math.random() * 1000)));\r\n}).set(['a', 'b', 'c', 'd']).run().then(() => { // then is a promise\r\n    console.log('Then MyWorker2');\r\n}).catch(() => { // catch is a promise\r\n    console.log('Catch MyWorker2');\r\n});\r\n\r\nworkers.all(workers.MyWorker, workers.MyWorker2).then(() => { // then is a promise\r\n    console.log('Then workers all');\r\n}).catch(() => { // catch is a promise\r\n    console.log('Catch workers all');\r\n});\r\n\r\nworkers.then(() => { // then is not a promise\r\n    console.log('Then workers');\r\n}).catch(() => { // catch is not a promise\r\n    console.log('Catch workers');\r\n}).complete(() => {\r\n    console.log('Complete workers');\r\n});\r\n\r\n```\r\n\r\n## Demos\r\n* [Basic](https://github.com/dobobaie/baby-workers/wiki/Basic)\r\n* [Promise](https://github.com/dobobaie/baby-workers/wiki/Promise)\r\n* [Stack](https://github.com/dobobaie/baby-workers/wiki/Stack)\r\n* [Simulate adding/removing worker](https://github.com/dobobaie/baby-workers/wiki/RemoveWorker-AddWorker)\r\n* [Set delay](https://github.com/dobobaie/baby-workers/wiki/Delay)\r\n* [Set interval](https://github.com/dobobaie/baby-workers/wiki/Interval)\r\n* [Push](https://github.com/dobobaie/baby-workers/wiki/Push)\r\n* [Adding data](https://github.com/dobobaie/baby-workers/wiki/Data)\r\n* [Cancel worker](https://github.com/dobobaie/baby-workers/wiki/Cancel)\r\n* [Limit workers with a queue](https://github.com/dobobaie/baby-workers/wiki/Limit)\r\n* [Set error](https://github.com/dobobaie/baby-workers/wiki/Error)\r\n* [All](https://github.com/dobobaie/baby-workers/wiki/All)\r\n\r\n## Main functions\r\n\r\nFunction | Available | Description | Additionnal\r\n---- | --------- | ----------- | -----------\r\ncreate(name: `string` or callback: `function`, callback: `function`) : `currentWorker` | ROOT & NODE | Create a new parent\r\nset(data:  `any`) : `currentWorker` | PARENT | Set data and create a new node\r\nmap(data:  `array`) : `currentWorker` | PARENT | Set array and create a new node for each element in the array\r\npush(data: `any`) : `currentWorker` | PARENT | Push a new data and create a new node\r\nerror(error: `string`) : `currentWorker` | NODE | Set error in current worker and all parent in the tree\r\npop() : `currentWorker` | NODE | Stop current node\r\nrun() : `Promise` | PARENT | Create and run nodes\r\n\r\n## Other way to run worker\r\n\r\nFunction | Available | Description | Additionnal\r\n---- | --------- | ----------- | -----------\r\nstack() : `Promise` | PARENT | Create and run nodes like a stack\r\nnext() : `Promise` | PARENT | Create and run the next node\r\nexec(idNode: `number`) : `Promise` | PARENT | Create and run a specific node\r\nreply(idNode: `number = undefined`) : `Promise` | PARENT | Reply a node or all nodes if idNode is undefined\r\ndelay(time: `number = 1`) : `Promise` | PARENT | Create and run nodes in a timeout\r\ninterval(time: `number = 1000`) : `Promise` | PARENT | Create and run nodes in an interval | stop() : `currentWorker`, NODE, Stop interval \r\n\r\n## Configuration functions\r\n\r\nFunction | Available | Description | Additionnal\r\n---- | --------- | ----------- | -----------\r\ncancel() : `currentWorker` | PARENT | Cancel parent worker\r\nlimit(maxWorkers: `number = 0`, extra: `boolean = false`) | ALL | Limit the number of workers (`maxWorkers = 0` = unlimited or take limit of parent - `maxWorkers = -1` = unlimited and ignore parent limit). If `extra = true` add extra limit ONLY IF PARENT WORKER IS FULL\r\naddWorker() : `currentWorker` | ALL | Add virtual worker (it's like create a fake worker without callback)\r\nremoveWorker() : `currentWorker` | ALL | Remove virtual worker (it's like pop a fake worker)\r\n\r\n## Callback functions\r\n\r\nFunction | Available | Description | Additionnal\r\n---- | --------- | ----------- | -----------\r\nall(...: `Promise` or `Name of parent worker` or `Parent worker` or `Any`) : `Promise` | ROOT | It's like `all` function in Promise, the difference is this function add a virtual worker and remove it after all elements has finished \r\ncomplete(callback: `function`, removeAfterCall: `boolean`) : `currentWorker` | ALL | Call function when current process is finish (node, parent => when childrens are finish or root => when childrens are finish) \r\nthen(callback: `function`, removeAfterCall: `boolean`) : `currentWorker` | ALL | Call function when current process is finish without error\r\ncatch(callback: `function`, removeAfterCall: `boolean`) : `currentWorker` | ALL | Call function when current process is finish with error \r\n\r\n## Data manager functions\r\n\r\nFunction | Available | Description | Additionnal\r\n---- | --------- | ----------- | -----------\r\nsave(data: `any`) : `currentWorker` | ALL | Save any data in current worker (node, parent or root) \r\n_save(data: `any`) : `currentWorker` | ALL | Save any data in current worker (node, parent or root) from root\r\nget() : `any` | ALL | Get data previously saved \r\n_get() : `any` | ALL | Get data previously saved from root \r\nflux : `object` | ALL | IT'S THE MAIN OBJECT, all data has saved here\r\n\r\n## Search functions\r\n\r\nFunction | Available | Description | Additionnal\r\n---- | --------- | ----------- | -----------\r\nroot() : `parentWorker` | NODE | Get root/parent of current worker \r\nparent(name: `string`, type: `string = 'parent'`) : `parentWorker OR nodeWorker` | PARENT & NODE | Get any parent/node going up the tree \r\nparentNode(name: `string`) : `parentWorker OR nodeWorker` | PARENT & NODE | Get any node going up the tree \r\nnode(key: `number`) : `nodeWorker` | PARENT | Return a node from parent \r\n\r\n## Get functions\r\n\r\nFunction | Available | Description | Additionnal\r\n---- | --------- | ----------- | -----------\r\ngetId() : `number` | NODE | Return id/key/index of node\r\ngetStatus() : `string` | ALL | Return global status\r\ngetError : `string` | ALL | Return error\r\ngetNodeStatus() : `string` | NODE | Return the status of node\r\ngetName() : `string` | ALL | Return name\r\ngetType() : `string` | ALL | Return type of current worker\r\ngetNodes() : `array` | PARENT | Return all nodes\r\ngetLimit() : `number` | ALL | Return the limit of workers allowed in current workers\r\ngetPromise() : `Promise` | Parent | Return the promise of parent worker\r\ngetWorkers() : `number` | ALL | Return the number of workers\r\ngetWaitingWorkers() : `number` | ALL | Return the number of waiting workers\r\ngetRunningWorkers() : `number` | ALL | Return the number of running workers\r\ngetTotalWorkers() : `number` | ALL | Return the total number of workers (nodes included)\r\ngetTotalWaitingWorkers() : `number` | ALL | Return the total number of workers (nodes included)\r\ngetTotalRunningWorkers() : `number` | ALL | Return the total number of workers (nodes included)\r\n","maintainers":[{"name":"dobobaie","email":"dobobaie@hotmail.fr"}],"time":{"modified":"2022-04-11T16:50:37.332Z","created":"2017-12-07T16:23:47.739Z","0.0.1":"2017-12-07T16:23:47.739Z","0.0.2":"2017-12-07T17:48:31.281Z","0.0.3":"2017-12-07T18:39:51.123Z","0.0.4":"2017-12-08T02:08:53.528Z","0.0.5":"2017-12-08T02:21:21.346Z","0.0.6":"2017-12-12T19:00:30.678Z","0.0.7":"2017-12-19T13:34:44.102Z","0.0.8":"2017-12-19T13:36:44.623Z","0.0.9":"2017-12-19T22:34:43.765Z","1.0.0":"2017-12-20T11:33:28.335Z","1.0.1":"2017-12-20T13:40:29.299Z","1.0.2":"2018-01-04T10:02:29.238Z","1.0.3":"2018-01-05T19:44:46.193Z","1.0.4":"2018-01-06T00:27:15.926Z","1.0.5":"2018-01-06T01:12:49.063Z","1.0.6":"2018-01-09T10:05:24.462Z","1.0.7":"2018-01-09T11:01:32.363Z","1.0.71":"2018-02-06T11:26:43.989Z","2.0.0":"2018-02-08T11:06:02.607Z","2.0.1":"2018-02-16T11:28:38.480Z","2.0.2":"2018-02-19T23:36:33.411Z","2.0.3":"2018-02-20T16:02:31.007Z","2.0.4":"2018-03-05T10:18:53.016Z"},"homepage":"https://github.com/dobobaie/baby-workers#readme","keywords":["promise","javascript","queue","line","process","func","limit","execution","nodejs","workers","worker","error","manager","asynchronous","function","stack","array","callback","complete","worker","save","get","timeout","interval","callback","js","manage","synchronous","async","thread","job","mutex","sync"],"repository":{"type":"git","url":"git+https://github.com/dobobaie/baby-workers.git"},"author":{"name":"dobobaie"},"bugs":{"url":"https://github.com/dobobaie/baby-workers/issues"},"license":"ISC","readmeFilename":"README.md","users":{"dobobaie":true}}