{"_id":"1-2and3","_rev":"1-41770ae2c4f27f966fc29aa05dc0c993","name":"1-2and3","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"1-2and3","version":"1.0.0","description":"Utility to join array element with `,` and last element with `and`","main":"built/index.js","types":"built/index.d.ts","scripts":{"build":"rimraf built && tsc","test":"jest","lint":"eslint .","start":"tsnd --respawn src/index.ts","prepare":"husky install","commitlint":"commitlint --edit","prepublishOnly":"npm run lint && npm test && npm run build","format":"prettier src --write"},"keywords":["typescript","array","join with","join","utility","2 separator","1-2and3","array utilities"],"author":{"name":"Ninad Mahajan"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Ninad89/1-2and3.git"},"bugs":{"url":"https://github.com/Ninad89/1-2and3/issues"},"homepage":"https://github.com/Ninad89/1-2and3","devDependencies":{"@commitlint/cli":"^17.6.7","@commitlint/config-conventional":"^17.6.7","@types/jest":"^29.5.3","@typescript-eslint/eslint-plugin":"^6.2.1","@typescript-eslint/parser":"^6.2.1","eslint":"^8.46.0","husky":"^8.0.0","jest":"^29.6.2","prettier":"3.0.1","rimraf":"^5.0.1","ts-jest":"^29.1.1","ts-node-dev":"^2.0.0","typescript":"^5.1.6"},"_id":"1-2and3@1.0.0","gitHead":"16fa886a9c82bb83ce60d80b55541267ee90ec22","_nodeVersion":"20.5.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-2peC2jrLtJcbv+UkJXFXl0QGpm2sAuUYFyym4GnYIvja7W+j3LnpuM/qdOxGjN0weQs1Q4q5O/GeCfjw/+rXxg==","shasum":"2abec7fbe7de093e1949f337ebf7ac28fb467b40","tarball":"https://registry.npmjs.org/1-2and3/-/1-2and3-1.0.0.tgz","fileCount":5,"unpackedSize":4405,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSBAEK2us1pc039UWfhgpMtv7L8ekBjAzJMbi89ZrsJAIhAOtRRm1MVfG6IroDsrNJjLeR7lvmxh45pFntrqGwhHHT"}]},"_npmUser":{"name":"ninad","email":"m.ninad99@gmail.com"},"directories":{},"maintainers":[{"name":"ninad","email":"m.ninad99@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/1-2and3_1.0.0_1691426516572_0.5644110534469247"},"_hasShrinkwrap":false},"1.1.0":{"name":"1-2and3","version":"1.1.0","description":"Utility to join array element with `,` and last element with `and`","main":"built/index.js","types":"built/index.d.ts","scripts":{"build":"rimraf built && tsc","test":"jest","lint":"eslint .","start":"tsnd --respawn src/index.ts","prepare":"husky install","commitlint":"commitlint --edit","prepublishOnly":"npm run lint && npm test && npm run build","format":"prettier src --write"},"keywords":["typescript","array","join with","join","utility","2 separator","1-2and3","array utilities"],"author":{"name":"Ninad Mahajan"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Ninad89/1-2and3.git"},"bugs":{"url":"https://github.com/Ninad89/1-2and3/issues"},"homepage":"https://ninad89.github.io/1-2and3/","devDependencies":{"@commitlint/cli":"^17.6.7","@commitlint/config-conventional":"^17.6.7","@types/jest":"^29.5.3","@typescript-eslint/eslint-plugin":"^6.2.1","@typescript-eslint/parser":"^6.2.1","eslint":"^8.46.0","husky":"^8.0.0","jest":"^29.6.2","prettier":"3.0.1","rimraf":"^5.0.1","ts-jest":"^29.1.1","ts-node-dev":"^2.0.0","typescript":"^5.1.6"},"_id":"1-2and3@1.1.0","gitHead":"eaab8b0b6010f66f72b2c606b757b21493672533","_nodeVersion":"20.5.1","_npmVersion":"9.8.0","dist":{"integrity":"sha512-zwpOdFxakql3OAe2N13Nit+acAw4h9tLF3sWJEcyEViEGaFdclM0mhcNHiTshhaqDdSVPgZx6FVuIVaHjpklNA==","shasum":"dd4d70727d5a455eaeda4b554e1f944f0f84be58","tarball":"https://registry.npmjs.org/1-2and3/-/1-2and3-1.1.0.tgz","fileCount":5,"unpackedSize":4754,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHAyBJlprApWPnqKtnvRnF5fzjVIjD//mtgIBb3pujZmAiBPIiqlGxiWJJRV5GrUt308Vq9Dktw7E5c3voloLTq9kw=="}]},"_npmUser":{"name":"ninad","email":"m.ninad99@gmail.com"},"directories":{},"maintainers":[{"name":"ninad","email":"m.ninad99@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/1-2and3_1.1.0_1691814394288_0.4188674133632315"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-07T16:41:56.569Z","1.0.0":"2023-08-07T16:41:56.729Z","modified":"2023-08-12T04:26:34.640Z","1.1.0":"2023-08-12T04:26:34.466Z"},"maintainers":[{"name":"ninad","email":"m.ninad99@gmail.com"}],"description":"Utility to join array element with `,` and last element with `and`","homepage":"https://ninad89.github.io/1-2and3/","keywords":["typescript","array","join with","join","utility","2 separator","1-2and3","array utilities"],"repository":{"type":"git","url":"git+https://github.com/Ninad89/1-2and3.git"},"author":{"name":"Ninad Mahajan"},"bugs":{"url":"https://github.com/Ninad89/1-2and3/issues"},"license":"MIT","readme":"## 1, 2, and 3\n---\n![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/Ninad89/1-2and3/node.js.yml)\n![Codecov](https://img.shields.io/codecov/c/gh/Ninad89/1-2and3)\n![npm](https://img.shields.io/npm/dt/1-2and3)\n![NPM](https://img.shields.io/npm/l/1-2and3)\n\n[![NPM](https://nodei.co/npm/1-2and3.png)](https://nodei.co/npm/1-2and3/)\n\n\nThis utility joins array elements with `, ` and last element with `and`\n\nSuppose if you want to join all elements of string array, but not just with the `,` . \n\nThis utility is here to just solve that tiny problem.\n\n### Let's see how to use.\n```\nimport join from '1-2and3'\n\njoin(['1', '2', '3', '4']) // 1, 2, 3 and 4\njoin(['1', '2']) // 1 and 2\njoin(['1']) // 1\njoin([]) //\njoin(['1', '2', '3', '4'], ', ', '&') // 1, 2, 3 & 4\n```\n> Element separator can be customized by passing second parameter to function.\n\n> Last element separator also can be customized by passing third argument to function\n\n\n### License\nMIT\n","readmeFilename":"README.md"}