{"id":18432122,"url":"https://github.com/dustinspecker/array-join-conjunction","last_synced_at":"2025-04-14T01:20:21.944Z","repository":{"id":57184010,"uuid":"50792415","full_name":"dustinspecker/array-join-conjunction","owner":"dustinspecker","description":"Join an array with a conjunction","archived":false,"fork":false,"pushed_at":"2019-11-02T04:18:08.000Z","size":14,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-16T09:26:34.095Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dustinspecker.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-31T20:00:41.000Z","updated_at":"2019-06-12T01:24:15.000Z","dependencies_parsed_at":"2022-08-23T01:20:41.358Z","dependency_job_id":null,"html_url":"https://github.com/dustinspecker/array-join-conjunction","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dustinspecker%2Farray-join-conjunction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dustinspecker%2Farray-join-conjunction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dustinspecker%2Farray-join-conjunction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dustinspecker%2Farray-join-conjunction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dustinspecker","download_url":"https://codeload.github.com/dustinspecker/array-join-conjunction/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248805176,"owners_count":21164231,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T05:27:30.697Z","updated_at":"2025-04-14T01:20:21.923Z","avatar_url":"https://github.com/dustinspecker.png","language":"JavaScript","readme":"# array-join-conjunction\n\n[![NPM version](https://badge.fury.io/js/array-join-conjunction.svg)](http://badge.fury.io/js/array-join-conjunction) [![Build Status](https://travis-ci.org/dustinspecker/array-join-conjunction.svg?branch=master)](https://travis-ci.org/dustinspecker/array-join-conjunction) [![Coverage Status](https://img.shields.io/coveralls/dustinspecker/array-join-conjunction.svg)](https://coveralls.io/r/dustinspecker/array-join-conjunction?branch=master)\n\n[![Code Climate](https://codeclimate.com/github/dustinspecker/array-join-conjunction/badges/gpa.svg)](https://codeclimate.com/github/dustinspecker/array-join-conjunction) [![Dependencies](https://david-dm.org/dustinspecker/array-join-conjunction.svg)](https://david-dm.org/dustinspecker/array-join-conjunction/#info=dependencies\u0026view=table) [![DevDependencies](https://david-dm.org/dustinspecker/array-join-conjunction/dev-status.svg)](https://david-dm.org/dustinspecker/array-join-conjunction/#info=devDependencies\u0026view=table)\n\n\u003e Join an array with a conjunction\n\n## Install\n\n```bash\nnpm install --save array-join-conjunction\n```\n\n## Usage\n\n```javascript\nimport arrayJoinConjunction from 'array-join-conjunction'\n\narrayJoinConjunction([])\n// =\u003e ''\n\narrayJoinConjunction([1, 2])\n// =\u003e '1 and 2'\n\narrayJoinConjunction(['blue', 'red', 'green'])\n// =\u003e 'blue, red, and green'\n\narrayJoinConjunction(['blue', 'red', 'green'], 'or')\n// =\u003e 'blue, red, or green'\n```\n\n## API\n### arrayJoinConjunction(array, [conjunction])\n\nReturns a `string` joined from `array` using an optional `conjunction`.\n\n#### array\ntype: `array`\n\nThe array to join into a string. An empty array returns an empty string.\n\n#### conjunction\ntype: `string`\n\ndefault: `'and'`\n\nA conjunction to join two or more words with. The default is to use `'and'`.\n\n## License\nMIT © [Dustin Specker](https://github.com/dustinspecker)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdustinspecker%2Farray-join-conjunction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdustinspecker%2Farray-join-conjunction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdustinspecker%2Farray-join-conjunction/lists"}