{"_id":"@baijanaththaru/set-utils","_rev":"1-4ceb05ee9b979fca681d2979aa724755","name":"@baijanaththaru/set-utils","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@baijanaththaru/set-utils","version":"1.0.0","description":"This is a collection of utils related to set of primitive types such as number, string, etc.","main":"lib/index.js","types":"./lib/index.d.ts","scripts":{"test":"vitest","build":"tsc","format":"prettier --write \"src/*.ts\"","lint":"tslint -p tsconfig.json","prepare":"npm run build","prepublishOnly":"npm test && npm run lint","preversion":"npm run lint","version":"npm run format && git add -A src","postversion":"git push && git push --tags"},"repository":{"type":"git","url":"git+https://github.com/baijanathTharu/set-utils.git"},"keywords":["typescript","javascript","set"],"author":{"name":"Baijanath Tharu"},"license":"MIT","bugs":{"url":"https://github.com/baijanathTharu/set-utils/issues"},"homepage":"https://github.com/baijanathTharu/set-utils#readme","devDependencies":{"prettier":"^2.7.1","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","typescript":"^4.8.4","vitest":"^0.25.1"},"gitHead":"b331fc0fc94a3e4f5b3fc803c31b4bb5d3707d46","_id":"@baijanaththaru/set-utils@1.0.0","_nodeVersion":"14.20.0","_npmVersion":"6.14.17","dist":{"integrity":"sha512-8B7Z69VodFWmdVgaKpT5hcXFXIQ4JHaIETY4qhUcaazh//W7g6bm/VsqCU8c7fF4uZzRB8VdKaBomy6lI/g3pw==","shasum":"2dac419af13ff2a4ddb129054d6a7db6e3a99bb5","tarball":"https://registry.npmjs.org/@baijanaththaru/set-utils/-/set-utils-1.0.0.tgz","fileCount":5,"unpackedSize":4826,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHDwr3nfJYNC5jZtWsbD8I0DVyKZKNQMFDwiqzbX2j4wIgTcfdxC1DSv2J80A48585XvuNJDghSI50RxvTmqOYaaY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbRMUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoPTw//QVmo4wg2XN0ZMy1lUkMMGrVbW1KPEJwYG/ax7KnapRR5a8VB\r\nYwREIwsGosMI5ZuIQcwUI/G374CW6PBouSBuuDA8rcgIGAm682+sokz4nyCK\r\n1g5CXTG+4TPsBoLZusHniVt54tFsNeG+UO0TtoFY1/kGIAYhcbSk2ELiEkaM\r\ntqrHaVr5ZYI/fmMAPd9L7kto494Xy/T00ORQMn+xRTsF6bqjZnrg6SS5LnPx\r\neIHotH21XSB5iKnU0Sb0r56sUHpJ8R+ZpMJrpaHB0zu2pP3Q95W3sEEvm3pL\r\nfr74vTna4E78jruSc3m7WTFzOkrC//wQGunuRcgkqk4ginyaFMPsuGMpY4kl\r\nOwh1KpJGBsIiZd/sMNUq1a2kw1f4GOWAs3OR/V4VjimXCLGS0Bg0VT3OyPhh\r\nkuWiNeCnu/C0L9mlsXWPNf1XERSCO7pu21Nt63Z94wfsr5ZWID9OoLQAnqrP\r\nix7mm3UAexp6YQVjQ9kh59GTDnA6PnzXxp2jRl6BTeMlh0/zWwnXasreErfx\r\nCxa085rUfJQZvfK0h7v2Zg8UW9/LxOjwnBW1HVxF9rnX6NmSJbhoEkonqnRG\r\nhm06Z/o41e5mzOemJ6nhY5Q9yAHiJNbMCajmWYmYt20VuCbIexfQxwcdlKJe\r\nrs1mMy0q5wiYZAwxtYjB0tY/4Ebj7WlCrt0=\r\n=w8Qy\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"baijanaththaru","email":"bnchaudhary.tharu@gmail.com"},"directories":{},"maintainers":[{"name":"baijanaththaru","email":"bnchaudhary.tharu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/set-utils_1.0.0_1668092692459_0.9397410539186775"},"_hasShrinkwrap":false},"1.0.1":{"name":"@baijanaththaru/set-utils","version":"1.0.1","description":"This is a collection of utils related to set of primitive types such as number, string, etc.","main":"lib/index.js","types":"./lib/index.d.ts","scripts":{"test":"vitest","build":"tsc","format":"prettier --write \"src/*.ts\"","lint":"tslint -p tsconfig.json","prepare":"npm run build","prepublishOnly":"npm test && npm run lint","preversion":"npm run lint","version":"npm run format && git add -A src","postversion":"git push && git push --tags"},"repository":{"type":"git","url":"git+https://github.com/baijanathTharu/set-utils.git"},"keywords":["typescript","javascript","set"],"author":{"name":"Baijanath Tharu"},"license":"MIT","bugs":{"url":"https://github.com/baijanathTharu/set-utils/issues"},"homepage":"https://github.com/baijanathTharu/set-utils#readme","devDependencies":{"prettier":"^2.7.1","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","typescript":"^4.8.4","vitest":"^0.25.1"},"gitHead":"ba7e6e3123bbced6fc794fe34390c272de02ebca","_id":"@baijanaththaru/set-utils@1.0.1","_nodeVersion":"14.20.0","_npmVersion":"6.14.17","dist":{"integrity":"sha512-lFsxjRCtqrfnlJIKuZwjDI3vRVOqtnFg3fhIOTA5HI8WSiQNpnTaSoHJrwqG8ox8kSJ5vSIXxG9UR4AlczVsFw==","shasum":"2ebb7831c0103d078b897a529590b9b8aab79624","tarball":"https://registry.npmjs.org/@baijanaththaru/set-utils/-/set-utils-1.0.1.tgz","fileCount":5,"unpackedSize":4873,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGmH9o3M8hkRfSxkDEkoZpYg0Ycq4TF9fiBZFQ41WufIAiEAjhQDzPw5RxuEODy40AzGbdfgQQVYCbKItYWaKjW8I7g="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjblRBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrwrg//QByqeG0f9Y5TghaUfiVLDByjiol/5yXADuEZjPW58CdyLD7l\r\nfs8x+tpKee7WWoA91q4gFUYWGvTMLiqy2HiNMlx5wlW/ToF4zSPI9nonp2Jf\r\nA3lpJMtDRe+Ga15ikg5HvhzC6ty2Iq7z9H/2FqIhHJPc4exFX+wBUf/DAf8L\r\nkIlcavJdnT4dieiaiXVVEoefSG4vaXsdF4WU/l5Ozzt2ArG5XQq5az3R0CbP\r\nwZpBQEuwqPrFUy2hMaQfMbq9HptFh45wmZUnatUw2H92aEd3LgbpXi6Hbgn0\r\nkDkVMGCApkG0tHSw2bfVtgf81AyD3ESl2Jbz3r0aYkSCcIvRXGSllrKrvKmR\r\nk7qExJ3K3fUUsltNAsPS8DHuo1XV8ooPdz7cdzeNSnFC9lkqXrI0QI94t2zy\r\nJuDuBBm6hG06otYPney3KLNOg+1ClADxkuKRiR6LdrJ/n6DqnIkLpVKNDqXW\r\nLnwkiLGyBfl061faXx2wVqNDpyh5Xz4RhBf5LYY6zXZvyZMSyqMK4vRg2tUP\r\nh5V9rdNAV8u5YZDVgJZerM7/+zB5sjXbzDw/8a3SHymJYfDRTHMaLQlgX9qF\r\nVlY/ZI2KnmHAjk1O50ed80yCEZIf3UQ5KTiylNS5YPICqUZWL6tQ4lf7ZBHd\r\nmAJZwfoHPBYWcdI9VgBENSOhVnpZjIgTPmU=\r\n=72Ta\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"baijanaththaru","email":"bnchaudhary.tharu@gmail.com"},"directories":{},"maintainers":[{"name":"baijanaththaru","email":"bnchaudhary.tharu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/set-utils_1.0.1_1668174913424_0.07637896185782034"},"_hasShrinkwrap":false}},"time":{"created":"2022-11-10T15:04:52.396Z","1.0.0":"2022-11-10T15:04:52.689Z","modified":"2022-11-11T13:55:13.693Z","1.0.1":"2022-11-11T13:55:13.618Z"},"maintainers":[{"name":"baijanaththaru","email":"bnchaudhary.tharu@gmail.com"}],"description":"This is a collection of utils related to set of primitive types such as number, string, etc.","homepage":"https://github.com/baijanathTharu/set-utils#readme","keywords":["typescript","javascript","set"],"repository":{"type":"git","url":"git+https://github.com/baijanathTharu/set-utils.git"},"author":{"name":"Baijanath Tharu"},"bugs":{"url":"https://github.com/baijanathTharu/set-utils/issues"},"license":"MIT","readme":"# Set Utils\n\nThis is a collection of utils related to array of primitive types such as number, string, etc.\n\n## Installation\n\n```bash\nnpm install @baijanathTharu/set-utils\n```\n\n## Usage\n\n```ts\nimport { difference, intersection, union } from '@baijanaththaru/set-utils';\nconst oddNumbersLessThanTen = [1, 3, 5, 7, 9];\nconst evenNumbersLessThanTen = [2, 4, 6, 8, 10];\nconst primeNumbersLessThanTen = [2, 3, 5, 7];\n\n\n// difference\nconst diffBetweenOddAndPrimeNumbersLessThanTen = difference(\n  oddNumbersLessThanTen,\n  primeNumbersLessThanTen\n);\n\n// intersection\nconst interBetwOddAndPrime = intersection(\n  oddNumbersLessThanTen,\n  primeNumbersLessThanTen\n);\n\n// union\nconst unionBetwOddAndEven = union(\n  oddNumbersLessThanTen,\n  evenNumbersLessThanTen\n);\n```\n","readmeFilename":"README.md"}