{"_id":"@barakbbn/just-a-seq","_rev":"8-11fe00acc7c48160c371e75996bd0d78","name":"@barakbbn/just-a-seq","dist-tags":{"latest":"1.2.0"},"versions":{"0.1.0":{"name":"@barakbbn/just-a-seq","version":"0.1.0","description":"Lazy Typescript sequence/collection (Like LINQ) with api that resemble JavaScript Array.","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","test":"ts-mocha -p ./tsconfig-mocha.json test/index.ts","pack":"pushd dist && npm pack || popd","deploy":"npm install && npm run build && npm test && npm run pack","coverage":"nyc --reporter=lcov npm test","_test_old":"mocha -r ts-node/register test/**/*.ts","_deleteDist":"rm -rf ./dist 2> .err || rd /S /Q dist 2> .err"},"keywords":["LINQ","iterable","iterator","generator","enumerable","IEnumerable","lazy","deferred","sequence","collection","Typescript","Javascript","ES2018"],"author":{"name":"barakbbn"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/barakbbn/just-a-seq.git"},"homepage":"https://github.com/barakbbn/just-a-seq/wiki/docs","devDependencies":{"@types/chai":"4.2.15","@types/mocha":"8.2.0","@types/node":"14.14.26","chai":"4.3.0","mocha":"8.3.0","nyc":"15.1.0","ts-mocha":"8.0.0","ts-node":"9.1.1","typescript":"4.1.5"},"gitHead":"03b7cf521ac3014fbc1fc7a55a0d1f27f1e86e0c","bugs":{"url":"https://github.com/barakbbn/just-a-seq/issues"},"_id":"@barakbbn/just-a-seq@0.1.0","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-AXR47C8++bNGJtp6D9xZypgAm1yIj1OIRoM6hL1cs3Rz9Ba4uhtcyxz9EEaABTit7sv5Ag5Skwx+ZpfhZeK5jg==","shasum":"5f796cf1b785ed62b262d3e936c34bd42a83dfad","tarball":"https://registry.npmjs.org/@barakbbn/just-a-seq/-/just-a-seq-0.1.0.tgz","fileCount":30,"unpackedSize":193273,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgT8hxCRA9TVsSAnZWagAAZ14P/j5R9/DLDXPs2nqT8Z0c\ns2i01b15lcr+k4gz5rE/LaanU2/a40SD6GBowRagLksUKVcEOg5FT409A0/h\ntTLM3m780Z6nQiqBrt3zRP+JGU/3C1+GN3dbCiPCzJSIhm1++/kCHPuKxLgr\nvxshDktegFhD0EUYQIurWkX6k665RGYPUNHxE5zUYgpXdfmbfPO+vY86GD4b\nGD6mitPDckLE+zpeUP7Ef2hYJCSiSRXU4GCzewnrwm/Ddouwc8mqf55n6otc\nDoF4tlMZL0yxH75L6X4J1YTpq0rYE6Pnb4ZfHslICVSeEVWFaepDNxnelYG1\nTMkx+wgqb1EDGYYcPGWQ8zIfOUBcs9KRCn7YZzPq93nltl0/EwhFMiwFvSJY\n6/2xZtIXx8xOC67hj3yJpxxI2De+y1lwDImYfcTiettFRTXuVj1UMyDExRrp\nrZK13gRtG4zCnf2D5n7PPdAXfhhiB0ZjIKpEWp+nxubxP/u+ehxyp3/ayVb3\ne7rpE6fYfvlsiCPMm5/HaG5XisfhVG2VkTcHcF6uDNW4QezPf6Lr9JJYYXgU\nmKIPonCmtzfnavmVSiLuzNsTYbUe/zxu+/9hexjp2xqPm1QfY6wDGW/dF85s\nXrKFKYCUeVcFKU3DuskZeCnmdXi9Fz3amD7zwJ/ZjiT8lsa6YfydNkFSX77m\nGAKj\r\n=zjV/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAshjzQznqB0LLFphN1S43oSK3ypgTc/+zoL7mWTy1nAAiAwW4MSQOTEGtElSVnsJeVsv4iRxNXRs6XbrMWktwGDkw=="}]},"_npmUser":{"name":"barakbbn","email":"barakbbn@gmail.com"},"directories":{},"maintainers":[{"name":"barakbbn","email":"barakbbn@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/just-a-seq_0.1.0_1615841393245_0.9217754345788995"},"_hasShrinkwrap":false},"0.2.1":{"name":"@barakbbn/just-a-seq","version":"0.2.1","description":"Lazy Typescript sequence/collection (Like LINQ) with api that resemble JavaScript Array.","scripts":{"build":"tsc","test":"ts-mocha -p ./tsconfig-mocha.json test/index.ts","pack":"pushd dist && npm pack || popd","deploy":"npm install && npm run build && npm test && npm run pack","coverage":"nyc --reporter=lcov npm test","_test_old":"mocha -r ts-node/register test/**/*.ts","_deleteDist":"rm -rf ./dist 2> .err || rd /S /Q dist 2> .err"},"keywords":["LINQ","iterable","iterator","generator","enumerable","IEnumerable","lazy","deferred","sequence","collection","Typescript","Javascript","ES2018"],"author":{"name":"barakbbn"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/barakbbn/just-a-seq.git"},"homepage":"https://github.com/barakbbn/just-a-seq/wiki/docs","devDependencies":{"@types/chai":"4.2.15","@types/mocha":"8.2.0","@types/node":"14.14.26","chai":"4.3.0","mocha":"8.3.0","nyc":"15.1.0","ts-mocha":"8.0.0","ts-node":"9.1.1","typescript":"4.1.5"},"exports":{".":{"default":"./dist/index.js"},"./optimized":{"default":"./dist/optimized.js"}},"typesVersions":{"*":{"*":["./dist/index.d.ts"],"optimized":["./dist/optimized.d.ts"]}},"gitHead":"99a7b12c73faedfbfb07ca8fe8204f4f080e2d9b","bugs":{"url":"https://github.com/barakbbn/just-a-seq/issues"},"_id":"@barakbbn/just-a-seq@0.2.1","_nodeVersion":"14.15.3","_npmVersion":"7.11.2","dist":{"integrity":"sha512-rK5n7y5fq+kn+cfrrcLsiNLBdk6KGStVjxyszWSxVTGVcF8cDs9w9W/xh5aj2MY2muVifaOUTWrvxp19PfEK/A==","shasum":"31e2e914294b2f8526d182ecd910b7d576f07061","tarball":"https://registry.npmjs.org/@barakbbn/just-a-seq/-/just-a-seq-0.2.1.tgz","fileCount":39,"unpackedSize":268758,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJguSDTCRA9TVsSAnZWagAAIH8P/1gWnyO4uQfXmvLvbEV0\nhxwWDuz9v+lOYL3ur779Zl0770HUYbKznMaD0XgaphJIuLPD+zlpk4lU7Idb\nNfvG86j2Rq4cERlqTM19OTokPpAdGLcmyoEv2fB6ByIZMKQ8pDl9zxx/4ofF\naCY4LTs71oMLFmmUHnb0IaBMAnW7qyRbgwS6rhkTdsBpEqMd3L43l5XpeHts\nPEfpKEMkAPa5n/ogLg3pwGyG/XiLisR5jjStt9JSUCz3seKbJep9ODjJ8Igf\nluUaa2dlFMvtLNiFvDHn4yuz3huPfvh04khH6PetKz8GSqZswLHp9uKihbRX\nZpAc2iclQTRcUEgZbXeAN84GjZ3JrXobthumtiR/E+oZq6569XwaEepj2HJc\nG3R3bzLTDIHG6N1hNXpne0kjV31mbIQ6H+u8WsVWgOAL75ITwXYbiOF8Loze\nzINgEh9ljX0lnlUQNSqh6Q2NyQSIx4kCrRh0QD/XVcbZwfNd7XXX7uTaTf4k\nhZpu9LfZsTuEg8Ph8oumPe3VsC+rRbSrUhbvKmaRvxpRGcDfOX0aM9AtV72H\nnRIF8cV6IDYFZaSFn0CbA9CdR7KvkItLKMbw9SKJ1jKbf5ev1/bmxvXmj4i0\ngJkqW7vuoDgRdR9MPVIuT7TXij7nVfXyUmDTKPoNP50AltJ21rprx+G98TUo\nz1Zp\r\n=Y0S4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0W5mEPYX2XGT0sTViJFwlB1NmNOTVKu6Sm1WFvmo+PQIgWokdkAIqVlEqy69GdY3Bh5GKnZ7f5YFzHRmi6yjaf0c="}]},"_npmUser":{"name":"barakbbn","email":"barakbbn@gmail.com"},"directories":{},"maintainers":[{"name":"barakbbn","email":"barakbbn@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/just-a-seq_0.2.1_1622745299607_0.7008726201123898"},"_hasShrinkwrap":false},"1.0.0":{"name":"@barakbbn/just-a-seq","version":"1.0.0","description":"Lazy Typescript sequence/collection (Like LINQ) with api that resembles JavaScript Array.","scripts":{"build":"tsc","test":"ts-mocha -p ./tsconfig-mocha.json test/index.ts","deploy":"npm install && npm run build && npm test && npm pack","coverage":"nyc --reporter=lcov npm test","_test_old":"mocha -r ts-node/register test/**/*.ts","_deleteDist":"rm -rf ./dist 2> .err || rd /S /Q dist 2> .err"},"keywords":["LINQ","iterable","iterator","generator","enumerable","IEnumerable","lazy","deferred","sequence","collection","Typescript","Javascript","ES2018"],"author":{"name":"barakbbn"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/barakbbn/just-a-seq.git"},"homepage":"https://github.com/barakbbn/just-a-seq/wiki/docs","devDependencies":{"@types/chai":"4.3.0","@types/mocha":"9.1.0","@types/node":"14.14.26","chai":"4.3.6","mocha":"10.0.0","nyc":"15.1.0","ts-mocha":"10.0.0","ts-node":"10.7.0","typescript":"4.1.5"},"exports":{".":{"default":"./dist/index.js"},"./optimized":{"default":"./dist/optimized.js"}},"typesVersions":{"*":{"*":["./dist/index.d.ts"],"optimized":["./dist/optimized.d.ts"]}},"gitHead":"2a4aa989ca44a5eea0fc6f5e6584dc1cd2a99c98","bugs":{"url":"https://github.com/barakbbn/just-a-seq/issues"},"_id":"@barakbbn/just-a-seq@1.0.0","_nodeVersion":"14.15.3","_npmVersion":"7.11.2","dist":{"integrity":"sha512-6SJDBthdP7mi1YBFeouE0aFYy61ROZ7EqdfRio7gFuDYkly3m/87IEqU1j0K3qGnA3a+ajnXQo+UAml+0O3fHw==","shasum":"d85b7c065e175d1010f9056dd5e02458efc61bad","tarball":"https://registry.npmjs.org/@barakbbn/just-a-seq/-/just-a-seq-1.0.0.tgz","fileCount":42,"unpackedSize":387894,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6lwjNI4mTCsRCixVF37dgZupttmyBamfOAvPe5aP/ZAIhAIDTvQXwVqCE4HnxC2rw827WRkVlYnk+zI5/cO3lBLsF"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYXwQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr5hw//XfhJYyT2nOuMvVp7fH+dkvBlChjx4/P3DzXBGypIyQWQnr2w\r\nDgNOU45dYm9W8pq6QJY9h9U7814K9dpiwblPFhRRlIowNiA4qs1XR5/QDs3+\r\nKY26DT1ff4zPVU8BNJh3Zpe+Lo8vDWUhZEEfCS8WpONepu2oOWd0/WAqfNIF\r\nhNi5Th3WDLsbScVhsBK+4VaNR8akeY1+1BBxLfcuRnoo22RwBMaftfI5bvFd\r\nVL7U/jmWeBC+6FTJzvoIe8WC/6/XQ+GBIr3J4L5pWUtClmxdQA9d8p+bw43Z\r\n7MXR7a9OkK4bn2raNaq0viAoqVH59xdzqtQkIcm/FdWcZ726foxb90Q1Wrxr\r\n8OfWyp2W6URzrlnzM6RhUrREAw3Cfw6y0zL+Mc+k0AENXCYgkBZ7GB8mEDjK\r\neC1Iz/K4xc3J0PfyoZ1rsr/BS770XpzYWkooDnLHAWYbiAtQ3+2+kn7Rwdua\r\n4/8zME+aQEKAEFWdNZ9yy9pAZR8cDD/1yloi550AsHz4NG/Ue+LLynk5j0qA\r\nSHkCwxBFKisbtcQQTAppg3e72/1FZ8PmuzrR66sIKwbqDq9hCiZ4ZgN4DRBJ\r\nxiTUNKpy/mebIuwmnTPYHam8dUJMBoEQkc7trpvMSHWGL/m/zf5FtgTZ52z0\r\nIfAbYzWd54iXu85eo+wGPdN1XkMIZfh7STk=\r\n=JWAl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"barakbbn","email":"barakbbn@gmail.com"},"directories":{},"maintainers":[{"name":"barakbbn","email":"barakbbn@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/just-a-seq_1.0.0_1667333136729_0.9984860969722607"},"_hasShrinkwrap":false},"1.0.1":{"name":"@barakbbn/just-a-seq","version":"1.0.1","description":"Lazy Typescript sequence/collection (Like LINQ) with api that resembles JavaScript Array.","scripts":{"build":"tsc","test":"ts-mocha -p ./tsconfig-mocha.json test/index.ts","deploy":"npm install && npm run build && npm test && npm publish","coverage":"nyc --reporter=lcov npm test","_test_old":"mocha -r ts-node/register test/**/*.ts","_deleteDist":"rm -rf ./dist 2> .err || rd /S /Q dist 2> .err"},"keywords":["LINQ","iterable","iterator","generator","enumerable","IEnumerable","lazy","deferred","sequence","collection","Typescript","Javascript","ES2018"],"author":{"name":"barakbbn"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/barakbbn/just-a-seq.git"},"homepage":"https://github.com/barakbbn/just-a-seq/wiki/docs","devDependencies":{"@types/chai":"4.3.3","@types/mocha":"10.0.0","@types/node":"14.14.26","chai":"4.3.6","mocha":"10.1.0","nyc":"15.1.0","ts-mocha":"10.0.0","ts-node":"10.9.1","typescript":"4.1.5"},"exports":{".":{"default":"./dist/index.js"},"./optimized":{"default":"./dist/optimized.js"}},"typesVersions":{"*":{"*":["./dist/index.d.ts"],"optimized":["./dist/optimized.d.ts"]}},"gitHead":"7832bdc477358a8ea478750e97b184ee57c5562d","bugs":{"url":"https://github.com/barakbbn/just-a-seq/issues"},"_id":"@barakbbn/just-a-seq@1.0.1","_nodeVersion":"14.15.3","_npmVersion":"7.11.2","dist":{"integrity":"sha512-ebowgQjgQZ+Hrn9Zr9f82mCIyDYk88v9w1OKFVos+LHifOmaf4/nP+S91NLmic0qSjAqx+qbwC/Of5ZvvoYJIQ==","shasum":"895f9cbade59c3811e89b1ca81f70bd3b6bf0e8d","tarball":"https://registry.npmjs.org/@barakbbn/just-a-seq/-/just-a-seq-1.0.1.tgz","fileCount":42,"unpackedSize":388750,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCP5d9uinfY6vAaTqivmXb1kB+lNV1nuvvj0qOa5YFscwIhALhGvDs5oQzG7ZLnxTr69j2D01LWK1YrEZCnxCqnbuOs"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZUOdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoEVA/9FIUvfYW1CsgoFsSxRMysIFBD9kUjLmK4leLyf8Yhgz9LWZi6\r\nAH8YEpuKB8k78LoliLGZ6uVyy4YTf/JqDeYLDySUpMBiIKe6eLdhrq0s/T4k\r\nLgE4dUDCdRWnHFZHmqdv9IzmeY/9u4Vy461qG58BFWKqHrCy0Q/P1jSOEWLA\r\nK0Ea7FYziL+JrnPoh/GAHHAXx2s1tUyaL0m1VhvQ1LDryr11lY1KOuDP36jA\r\nYBN74qEOPYvW5iauYIJnDSA8aHnW1WJ5aM8AZGHW21NzU9msJIAYoVKzC88v\r\nf+ewy6GCsJuJmpB9s4y8UFp80aM58DJq+fo8xReazXvq+n3zJ0BQ669ec8cu\r\n54Qlv2autwd2v5Lh8CbgRCd+J7vwSPYNnwxNu4x9z80weNfS0hAZ3GOC/ssh\r\nPtzVPTuMv6g+33rb0kGceHBFqRm8eSv/8ujN/knC5OIO2hHvfLR9Ywh4kztP\r\n2wIYeqRlH/ECVUGS+AitoIcKuZg01IhH5paDVqOUn3j8J6E8kiW4xuuW+lhu\r\nRQ4OQwO7VvDep0y1drq2CKqJM9BD7lqyO/bBM3ROIZTL9ThQ4ZXdXEBsCvaq\r\nY/YKnrYeXcWDZ7h8JPaJLFJiOaKF/oGZtVjM4BxRkpfm+RIRDON/MK5iYMOY\r\n1jjQw0oI4iQfuXva9P7mMMLNzYUwLsa5FtM=\r\n=kjcv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"barakbbn","email":"barakbbn@gmail.com"},"directories":{},"maintainers":[{"name":"barakbbn","email":"barakbbn@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/just-a-seq_1.0.1_1667580829732_0.060496055226183953"},"_hasShrinkwrap":false},"1.1.0":{"name":"@barakbbn/just-a-seq","version":"1.1.0","description":"Lazy Typescript sequence/collection (Like LINQ) with api that resembles JavaScript Array.","scripts":{"build":"tsc","test":"ts-mocha -p ./tsconfig-mocha.json test/index.ts","deploy":"npm install && npm run build && npm test && npm publish","coverage":"nyc --reporter=lcov npm test","_test_old":"mocha -r ts-node/register test/**/*.ts","_deleteDist":"rm -rf ./dist 2> .err || rd /S /Q dist 2> .err"},"keywords":["LINQ","iterable","iterator","generator","enumerable","IEnumerable","lazy","deferred","sequence","collection","Typescript","Javascript","ES2018"],"author":{"name":"barakbbn"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/barakbbn/just-a-seq.git"},"homepage":"https://github.com/barakbbn/just-a-seq/wiki/docs","devDependencies":{"@types/chai":"4.3.3","@types/mocha":"10.0.0","@types/node":"14.18.36","chai":"4.3.6","mocha":"10.1.0","nyc":"15.1.0","ts-mocha":"10.0.0","ts-node":"10.9.1","typescript":"4.1.5"},"exports":{".":{"default":"./dist/index.js"},"./optimized":{"default":"./dist/optimized.js"}},"typesVersions":{"*":{"*":["./dist/index.d.ts"],"optimized":["./dist/optimized.d.ts"]}},"gitHead":"eca5f4f94dbabe0c9b2cf3db69ae08a3917a6436","bugs":{"url":"https://github.com/barakbbn/just-a-seq/issues"},"_id":"@barakbbn/just-a-seq@1.1.0","_nodeVersion":"14.15.3","_npmVersion":"7.11.2","dist":{"integrity":"sha512-13h0pFy9DFIGYwHxX1Vg8WE5+NbAG1sBqrI8jcsxpWquvm5wWezOUAvfKvCvNbVI+QT66SYsDEp4OI4KgTVAPA==","shasum":"e5780e6fac522d1a0c6d221835928c2e728defbe","tarball":"https://registry.npmjs.org/@barakbbn/just-a-seq/-/just-a-seq-1.1.0.tgz","fileCount":42,"unpackedSize":439140,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDiPZ2aFRPb66J4z/mapW0f6Q8wJpKOZSsP5NXiRw1hUQIgNrunc6I4uLD+mZB8kFrpcfjgcou14WilmkVHg06KRfk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+NzsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpezhAAnHENRC5vQ8otTghLk/bQpHP93uC06BqyTjxGvqYdrpCnlw0m\r\nWrMEmGGW6lY5WaZy5KglE+Jy4VyE2AxbLPoC6SbsDPU4BKkwEfscecWkzv+9\r\nVlCuQky3Quz24wtsTtA+hc5UmkUbhhD0wlv7zH3+GHC2M5L6RGzyxY+V68wH\r\nAMw34Vq9kPKCoVTpf3MUPwiZvGAqKM696a3n7UHSs+ds2KXg4enL/agGOQXo\r\nwY/ROg+hoboUPqGfiTQ225D7qsHMF+EoagjGTXHgQ1ZwkC6RBUrXtixP0qDX\r\nrQrbYInrUAVyMhKMHExOUXROlVFzlg/n6xGFuShv+7Ce4kLadCl0bITpMG0k\r\n5Z0jZnJfioL3U4EDRlQw7j4VIB6KIt1IAHUXoQ45X4BzSsSyfFw24IAeRCT7\r\nw+b14qZ6fyQmTNW/FOFpzMdg66Yc9COJxpWqv7+9e2khm4mdC0LSUurVvUXd\r\nTQdU1yQ7t3HAtgyK92ItwXfxCB2Z6QDpR4FrUuWgVahSs3loLr7CI2IjzFkK\r\n2nN2HJzybZcLi1ewdn/1ZIgX7glYokE4GQWfsg7GTtB+s416WlAadUaPUl3V\r\n6xZzs60i0uY7K+5pEpch5fc6NSlMyB4w3j7w+R73L4WCfyNY3mdl/xj00bm8\r\n7Cr6tRRuVri2UBt4HClOdHgOcLOkvFnAhMc=\r\n=/Yrd\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"barakbbn","email":"barakbbn@gmail.com"},"directories":{},"maintainers":[{"name":"barakbbn","email":"barakbbn@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/just-a-seq_1.1.0_1677253868158_0.506191521218941"},"_hasShrinkwrap":false},"1.2.0":{"name":"@barakbbn/just-a-seq","version":"1.2.0","description":"Lazy Typescript sequence/collection (Like LINQ) with api that resembles JavaScript Array.","scripts":{"build":"tsc --noEmit && tsup","test":"ts-mocha -p ./tsconfig-mocha.json test/index.ts","deploy":"npm install && npm run build && npm test && npm publish","coverage":"nyc --reporter=lcov npm test"},"author":{"name":"barakbbn"},"license":"ISC","engines":{"npm":">=7.0.0"},"repository":{"type":"git","url":"git+https://github.com/barakbbn/just-a-seq.git"},"homepage":"https://github.com/barakbbn/just-a-seq/wiki/docs","devDependencies":{"esbuild-plugin-umd-wrapper":"1.0.7","@rollup/plugin-typescript":"11.1.0","@types/chai":"4.3.3","@types/mocha":"10.0.0","@types/node":"14.18.36","chai":"4.3.7","mocha":"10.2.0","nyc":"15.1.0","ts-mocha":"10.0.0","ts-node":"10.9.1","tsup":"6.7.0","typescript":"4.9.5"},"types":"./dist/index.d.ts","exports":{".":{"default":"./dist/index.js"}},"typesVersions":{"*":{"*":["./dist/index.d.ts"]}},"keywords":["LINQ","iterable","iterator","generator","enumerable","IEnumerable","lazy","deferred","sequence","collection","Typescript","Javascript","ES2018"],"whyDependencies":{"esbuild-plugin-umd-wrapper@1.0.7":"Used by tsup to bundle as UMD module","@rollup/plugin-typescript@11.1.0":"Used by tsup to generate typescript d.ts declation file"},"gitHead":"7a3a1fbad449d00b7886a7bb474b266e4548f55d","bugs":{"url":"https://github.com/barakbbn/just-a-seq/issues"},"_id":"@barakbbn/just-a-seq@1.2.0","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-t4BLwigbzdniWhscOnBXv5zVt5qUogS1XU7TwbANuzBUQcOHMY1KeUoyR+sUNhzu2HIBjGngboDKjOtPrbxM9w==","shasum":"1a551c03364d35bed539c411dddfdcbac06e6570","tarball":"https://registry.npmjs.org/@barakbbn/just-a-seq/-/just-a-seq-1.2.0.tgz","fileCount":6,"unpackedSize":447835,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSnQT17MNk0Lyluw0mBzjGToBx+uqN1bC/KLXNx0AIDQIgWwSGYBnbFpXLDewfkr8PrdGhXlytRyG85CDQSy7FIps="}]},"_npmUser":{"name":"barakbbn","email":"barakbbn@gmail.com"},"directories":{},"maintainers":[{"name":"barakbbn","email":"barakbbn@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/just-a-seq_1.2.0_1692213482725_0.09225372725445147"},"_hasShrinkwrap":false}},"time":{"created":"2021-03-15T20:49:53.207Z","0.1.0":"2021-03-15T20:49:53.462Z","modified":"2023-08-16T19:18:03.097Z","0.2.0":"2021-06-03T18:18:53.971Z","0.2.1":"2021-06-03T18:34:59.744Z","1.0.0":"2022-11-01T20:05:36.925Z","1.0.1":"2022-11-04T16:53:49.955Z","1.1.0":"2023-02-24T15:51:08.395Z","1.2.0":"2023-08-16T19:18:02.906Z"},"maintainers":[{"name":"barakbbn","email":"barakbbn@gmail.com"}],"description":"Lazy Typescript sequence/collection (Like LINQ) with api that resembles JavaScript Array.","homepage":"https://github.com/barakbbn/just-a-seq/wiki/docs","keywords":["LINQ","iterable","iterator","generator","enumerable","IEnumerable","lazy","deferred","sequence","collection","Typescript","Javascript","ES2018"],"repository":{"type":"git","url":"git+https://github.com/barakbbn/just-a-seq.git"},"author":{"name":"barakbbn"},"bugs":{"url":"https://github.com/barakbbn/just-a-seq/issues"},"license":"ISC","readme":"# just-a-seq [![GitHub last commit](https://img.shields.io/github/last-commit/barakbbn/just-a-seq)](https://github.com/barakbbn/just-a-seq) [![GitHub license](https://img.shields.io/github/license/barakbbn/just-a-seq)](https://github.com/barakbbn/just-a-seq/LICENSE)\n\nThis is just a **sequence** that provides LINQ functionalities (and more)  \nBut with an API that resembles JavaScript Array ( `map()` instead of `Select()`, `filter()` instead of `Where()`).  \nIt wraps an array or other Iterable object, Generator function.  (`asSeq([1,2,3])` , `asSeq(map.values())`)\n\n---\n\n### Features\n\n* Typescript type definitions\n* Fluent API - chain functions calls to simplify the code:  `seq.filter().map().sorted().toArray()`\n* Lazy/Deferred functionalities, similar to .NET LINQ.\n\n  Instead of immediately producing a new Array from methods such as `map`, `filter`, it iterates the items only once\n  when being consumed (i.e. `toArray()`, `foreach()`, `count()` ).\n* Immutable - actions on the sequence won't change it, but return a new sequence with the changes\n* API that more resemble to JavaScript Array\n  (Since most existing libraries already mimics .Net IEnumerable).\n* Additional useful functionalities that can make you more productive.\n\nSee: [![GitHub docs](https://img.shields.io/static/v1?label=docs&message=Full%20API&color=blueviolet)](https://github.com/barakbbn/just-a-seq/wiki/docs) [![NPM Badge](https://img.shields.io/npm/v/@barakbbn/just-a-seq)](https://www.npmjs.com/package/@barakbbn/just-a-seq)\n\n#### Examples\n \n```typescript\n// Zip upto 64KB of files or max of 100 files into separate zip file\nimport {asSeq} from '@barakbbn/just-a-seq';\n\nconst files: { name: string; size: number; ext: string; }[] = getListOfFiles();\n\nasSeq(files)\n  .filter(file => file.ext === '.json')\n  .chunkByLimit(64 * 1024 * 1024 /* 64MB */, file => file.size, {maxItemsInChunk: 100})\n  .forEach((chunk, i) => {\n    saveZipFile(`chunk-${i}.zip`, chunk.map(file => file.name));\n  });\n```\n\n```typescript\n// Count how many files for each file-extension\nconst extensions = new Set(['.txt', '.docx', '.xlsx', '.csv']);\nconst countOfEachFileType = asSeq(getListOfFiles())\n  .filter( file => extensions.has(file.ext))\n  .toMapOfOccurrences(file => file.ext)\n\nconsole.log('count of each file type:', countOfEachFileType);\n// Output:\n// count of each file type: Map(3) { '.txt' => 24, '.docx' => 28, '.csv' => 24 }\n```\n\n<details>\n<summary><i>Example 2</i></summary>\n\n```typescript\n// Join arrays of users-groups and groups-premissions to produce a sinlge array of users with their permissions\nimport {asSeq} from '@barakbbn/just-a-seq';\n\nconst users = [\n  {user: 'sa', group: 'admins'},\n  {user: 'system', group: null},\n  {user: 'guest', group: 'guests'},\n  {user: 'any', group: 'guests'},\n  {user: 'me', group: 'admins'}\n];\n\nconst permissions = [\n  {group: 'admins', perm: 'read'},\n  {group: 'admins', perm: 'write'},\n  {group: 'services', perm: 'exec'},\n  {group: 'guests', perm: 'read'},\n  {group: 'admins', perm: 'exec'},\n];\n\nconst usersPermissions = asSeq(users)\n  // Match users with permissions having the same group, return object with username and permission name {user, perm}\n  .innerJoin(permissions, user => user.group, perm => perm.group, (outer, inner) => ({user: outer.user, perm: inner.perm})) // results could be also mapped like this: ({user}, {perm}) => ({user, perm})\n            // -> {user: 'sa', perm: 'read'}},\n            //    {user: 'sa', perm: 'write'}},\n            //    {user: 'sa', perm: 'exec'}},\n            //    {user: 'guest', perm: 'read'}},\n            //    {user: 'any', perm: 'read'}},\n            //    {user: 'me', perm: 'read'}},\n            //    {user: 'me', perm: 'write'}},\n            //    {user: 'me', perm: 'exec'}}\n  // Group by user and select/map only the permission name\n  .groupBy(x => x.user, undefined, x => x.perm)\n          // -> {key: 'sa',    __group__: [ 'read', 'write', 'exec' ]},\n          //    {key: 'guest', __group__: [ 'read' ]},\n          //    {key: 'any',   __group__: [ 'read' ]},\n          //    {key: 'me' ,   __group__: [ 'read', 'write', 'exec' ]}\n  // Map items into object with username and sorted array of its permissions\n  .map(group => ({user: group.key, permissions: group.sorted().toArray()}))\n      // -> {user: 'sa',    permissions: [ 'exec', 'read', 'write' ]},\n      //    {user: 'guest', permissions: [ 'read' ]},\n      //    {user: 'any',   permissions: [ 'read' ]},\n      //    {user: 'me' ,   permissions: [ 'exec', 'read', 'write' ]}\n  // Sort by username\n  .sortBy(x => x.user)\n        // -> {user: 'any',   permissions: [ 'read' ]},\n        //    {user: 'guest', permissions: [ 'read' ]},\n        //    {user: 'me' ,   permissions: [ 'exec', 'read', 'write' ]}\n        //    {user: 'sa',    permissions: [ 'exec', 'read', 'write' ]},\n  .toArray();\n\nconsole.log('Users Permissions:', usersPermissions);\n// Output: \n// Users Permissions: [\n//   { user: 'any', permissions: [ 'read' ] },\n//   { user: 'guest', permissions: [ 'read' ] },\n//   { user: 'me', permissions: [ 'exec', 'read', 'write' ] },\n//   { user: 'sa', permissions: [ 'exec', 'read', 'write' ] }\n// ]\n```\n![innerJoin() animation](https://github.com/barakbbn/just-a-seq/wiki/images/inner-join-small.gif) <a href=\"https://github.com/barakbbn/just-a-seq/wiki/images/inner-join-large.gif\"><samp>[+]</samp></a>\n</details>\n<br>\n\n### Breaking changes\nVersion 1.2.0\n* Optimized mode is enabled by default !   \n  importing/requiring '@barakbbn/just-a-seq/optimized' is **no longer supported**.  \n  To disable optimized mode:\n  ```ts\n  import {asSeq, Seq} from '@barakbbn/just-a-seq';\n  Seq.enableOptimization = false;\n  ```\n* Package become a bundled CommonJS javascript file wrapped as UMD module (index.js).  \n  In order to be able to use both in Node.JS and **Browser** (exported as global variable **jas**eq).\n  ```html\n  <html>\n    <script src=\"file://node_modules/@barakbbn/just-a-seq/dist/index.js\"></script>\n    <script>\n        var seq = jaseq.asSeq([1, 2]);\n        var len = seq.length();\n        document.getElementById(\"my-size\").innerText = len;\n    </script>\n  </html>\n  ```\n\n#### More Examples\n\n<!-- Example 2 -->\n\n<!-- Example 3 -->\n<details>\n<summary><i>Example 3</i></summary>\n\n```typescript\nimport {asSeq} from '@barakbbn/just-a-seq';\n\nconst layers = [\n  {layerId: 1, name: 'L-01', points: [{x: 0, y: 0, tag: 'center'}, {x: 1, y: 1, tag: 'opt'}], type: 'static'},\n  {layerId: 2, name: 'L-02', points: [{x: 0, y: 0, tag: 'relative'}, {x: 2, y: 2, tag: 'opt'}], type: 'static'},\n  {layerId: 3, name: 'L-0A', points: [{x: 0, y: 0, tag: 'relative'}, {x: 3, y: 3, tag: 'relative'}], type: 'static'},\n  {layerId: 4, name: 'L-0B', points: [{x: 0, y: 0, tag: 'offset'}, {x: 1, y: 1, tag: 'center'}], type: 'float'},\n  {layerId: 5, name: 'L---', points: [{x: 0, y: 0, tag: '-'}, {x: 1, y: 1, tag: '-'}], type: 'hidden'}\n];\n\nconsole.log(asSeq(layers)\n  .filter(l => l.type !== 'hidden') // None hidden layers\n  .flatMap(l => l.points) // Flat all layers' points into a sequence\n  .distinct(p => p.x + ',' + p.y) // Remove duplicate points\n  .sortBy(p => p.x) // Sort by x then by y\n  .thenSortBy(p => p.y)\n  .prepend([{x: -1, y: -1, tag: '-'}]) // Add special point at the beginning\n  .map(p => `{${p.x},${p.y}}`) // Map each point to string representation\n  .toString() // Convert the sequence into string wrapped in brackets\n);\n// Output: [{-1,-1},{0,0},{1,1},{2,2},{3,3}]\n```\n\n</details>\n<br>\n<!-- Example 4 -->\n<details>\n<summary><i>Example 4</i></summary>\n\n```typescript\nimport {asSeq} from '@barakbbn/just-a-seq';\n\nconst graphA = [\n  {x: 0, y: 0}, {x: 1, y: 2}, {x: 2, y: 4}, {x: 3, y: 6}, {x: 4, y: 8}, {x: 5, y: 10}\n];\nconst graphB = [\n  {x: 0, y: 0}, {x: 1, y: 1}, {x: 2, y: 4}, {x: 3, y: 7}, {x: 4, y: 6}, {x: 5, y: 8}\n];\n\nconst averageDiff = asSeq(graphA)\n  // Match points with same x value, return object with matching points from graphA and graphB {a,b}\n  .innerJoin(graphB, a => a.x, b => b.x, (a, b) => ({a, b})) \n              // -> {a: {x: 0, y: 0 }, b: {x: 0, y: 0}},\n              //    {a: {x: 1, y: 2 }, b: {x: 1, y: 1}},\n              //    {a: {x: 2, y: 4 }, b: {x: 2, y: 4}},\n              //    {a: {x: 3, y: 6 }, b: {x: 3, y: 7}},\n              //    {a: {x: 4, y: 8 }, b: {x: 4, y: 6}},\n              //    {a: {x: 5, y: 10}, b: {x: 5, y: 8}}\n  // Map each matching item to the absolute difference between y value of points {a,b}\n  .map(({a, b}) => Math.abs(a.y - b.y)) // -> 0, 1, 0, 1, 2, 2\n  // Calculate average on all the values\n  .average(); // -> 1\n\nconsole.log('Average difference', averageDiff);\n// Output: Average difference 1\n```\n\n</details>  \n<br>\n<!-- Example 5 -->\n<details>\n<summary><i>Example 5</i></summary>\n\n```typescript\nimport {asSeq} from '@barakbbn/just-a-seq';\n\nconst files: { name: string; size: number; ext: string; }[] = getListOfFiles();\n\nconst chunksOfFiles = asSeq(files)\n  .filter(file => file.ext === '.ndjson')\n  .sortBy(file => file.size)\n  .chunkByLimit(64 * 1024 * 1024 /* Max 64MB MEM */, file => file.size, {maxItemsInChunk: 100});\nconst chunksOfRecords = chunksOfFiles.map(chunk => chunk\n  .map(file => loadfileContent(file.name))\n  .map(json => JSON.parse(json))\n  .flatMap(obj => buildDbRecords(obj))\n);\n\nchunksOfRecords.forEach(recordsSeq => saveToDatabase(recordsSeq));\n```\n\n</details>\n\n### Functionality summary\n\n#### Immediate actions\n\n\n|            |                    |                    |                     |       |          |\n|------------|--------------------|--------------------|---------------------|-------|----------|\n| all        | any                | at                 | average             |       |          |\n| consume    | count              |                    |                     |       |          |\n| endsWith   | every              |                    |                     |       |          |\n| find       | findIndex          | findLast           | findLastIndex       | first |          |\n| forEach    |                    |                    |                     |       |          |\n| hasAtLeast |                    |                    |                     |       |          |\n| includes   | includesAll        | includesAny        | includesSubSequence |       |          |\n| indexOf    | indexOfSubSequence | isEmpty            |                     |       |          |\n| last       | lastIndexOf        | length             |                     |       |          |\n| max        | maxItem            | min                | minItem             |       |          |\n| reduce     | reduceRight        |                    |                     |       |          |\n| sameItems  | sameOrderedItems   | some               | startsWith          | sum   |          |\n| toArray    | toMap              | toMapOfOccurrences | [toObject]          | toSet | toString |\n\n#### Deferred actions\n\n\n|            |                      |                    |                |                      |                    |\n|------------|----------------------|--------------------|----------------|----------------------|--------------------|\n| append     | aggregate            | aggregateRight     |                |                      |                    |\n| cache      | cartesian            | chunk              | chunkBy        | **chunkByLimit**     | concat             |\n| diff       | diffDistinct         | diffMatch          | distinct       | distinctUntilChanged |                    |\n| entries    |                      |                    |                |                      |                    |\n| filter     | firstAndRest         | flat               | flatMap        |                      |                    |\n| groupBy    | **groupBy$**         | groupJoin          | groupJoinRight |                      |                    |\n| ifEmpty    | innerJoin            | insert             | insertAfter    | insertBefore         |                    |\n| intersect  | interleave           | intersectBy        | intersperse    | intersperseBy        |                    |\n| join       |                      |                    |                |                      |                    |\n| map        | [mapInGroup]         | move               | padEnd         | partition            | partitionWhile     |\n| ofType     |                      |                    |                |                      |                    |\n| prepend    | push                 |                    |                |                      |                    |\n| reduce     | reduceRight          | remove             | removeAll      | removeFalsy          |                    |\n| removeKeys | removeNulls          | repeat             | reverse        |                      |                    |\n| scan       | skip                 | skipFirst          | skipLast       |                      |                    |\n| skipWhile  | slice                | sort               | sortBy         | [thenGroupBy]        | &lt;thenSortBy&gt; |\n| sorted     | split                | splitAt            |                |                      |                    |\n| take       | takeBy               | takeLast           | takeOnly       | takeWhile            | **tap**            |                    \n| transform  | traverseBreadthFirst | traverseDepthFirst |                |                      |                    |\n| [ungroup]  | [ungroupAll]         | union              | unionRight     | unshift              |                    |\n| window     |                      |                    |                |                      |                    |\n| zip        | zipAll               | zipWithIndex       |                |                      |                    |\n\n#### Factories\n\n\n|        |         |        |\n|--------|---------|--------|\n| asSeq  | indexes | empty  |\n| random | range   | repeat |\n\n## Optimized Mode\n\nBy default, some functionalities, in certain conditions are being optimized by doing \"shortcuts\".  \nThis behavior assumes no side effects are being done by your code. (especially through map() ).  \n( for side effect should use tap(). )  \n\n\nIf witnessing some mis-behaviours in optimized mode (Enabled by default),  \nIt might be since relying on the optimized behaviours.  \nIn that case disable optimized mode.\n\n##### Disabling optimized mode:\n```ts\nimport {asSeq, Seq} from '@barakbbn/just-a-seq';\nSeq.enableOptimization = false;\n```\n\nExample of side effect\n\n```ts\nimport {asSeq, Seq} from '@barakbbn/just-a-seq';\n\nlet students = loadStudents();\nlet gotTopGrade = false;\n\n// DON'T\nstudents = students.map(s => {\n  if (s.grade === 100) gotTopGrade = true; // Side Effect\n  return s;\n});\n\n// DO\nstudents = students.tap(s => gotTopGrade |= (s.grade === 100));\n\nprocessStudents(students);\n```\nExample of optimization of sorted sequence\n```ts\nimport {random, Seq} from '@barakbbn/just-a-seq';\n\nclass PointsComponent {\n  points: Seq<{ x: number; y: number; }>;\n  samePoints = 0;\n\n  constructor() {\n    const points = this.loadPoints();\n\n    this.points = asSeq(points).sort((a, b) => {\n      const comparable = (a.x - b.x) || (a.y - b.y);\n      if (comparable === 0) samePoints++; // Side Effect\n      return comparable;\n    });\n    // The comparer function is not guranteed to run in optimization mode, \n    // i.e When re-sort is performed, or performing functionality that not requires sorting (count, includes).\n    // IF the side effect is required, disable optimized.\n  }\n\n  onUserSelectedPoint(selectedPoint: { x: number; y: number; }) {\n    // Optimization-mode might skip the sorting since includes() can be performed without sorting first\n    if (!this.points.includes(selectedPoint)) {\n      this.points = this.points.push(selectedPoint);\n    }\n    // Optimization-mode might skip the sorting since count() can be performed without sorting first\n    console.log('Total Points:', this.points.count());\n  }\n}\n```\n","readmeFilename":"README.md"}