{"dist":{"shasum":"b8417b750661a392bee2c2537c68b2a9d4977cd5","tarball":"https://registry.npmjs.org/join-component/-/join-component-1.1.0.tgz","integrity":"sha512-bF7vcQxbODoGK1imE2P9GS9aw4zD0Sd+Hni68IMZLj7zRnquH7dXUmMw9hDI5S/Jzt7q+IyTXN0rSg2GI0IKhQ==","signatures":[{"sig":"MEYCIQDZU/xN2HUK7n4ocOC2e6UXB8PSkzJvalfx2E5KZv3nRwIhAPUQJw3nThMqelmiu7a95QF6xuS4O+FJj9bCESi24jGo","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"name":"join-component","repo":"component/join","readme":"\n# join\n\n  Join a list in a nice human friendly way.\n\n## Installation\n\n    $ component install component/join\n\n## API\n\n   - [join(arr)](#joinarr)\n   - [join(arr, str)](#joinarr-str)\n   - [join(arr, str) with Oxford comma](#joinarr-str-with-oxford-comma)\n<a name=\"\"></a>\n\n<a name=\"joinarr\"></a>\n# join(arr)\nshould default to \"and\".\n\n```js\njoin(['foo', 'bar']).should.equal('foo and bar');\n```\n\n<a name=\"joinarr-str\"></a>\n# join(arr, str)\nshould join.\n\n```js\njoin([], 'and').should.equal('');\njoin(['foo'], 'and').should.equal('foo');\njoin(['foo', 'bar'], 'and').should.equal('foo and bar');\njoin(['foo', 'bar', 'baz'], 'or').should.equal('foo, bar or baz');\n```\n\n<a name=\"joinarr-str-with-oxford-comma\"></a>\n# join(arr, str) with Oxford comma\nshould remove comma with less than 3 items.\n\n```js\njoin([], ', or').should.equal('');\njoin(['foo'], ', or').should.equal('foo');\njoin(['foo', 'bar'], ', or').should.equal('foo or bar');\n```\n\nshould join with 3 or more items.\n\n```js\njoin(['foo', 'bar', 'baz'], ', and').should.equal('foo, bar, and baz');\n```\n\n## License\n\n  MIT\n","license":"MIT","_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"keywords":[],"component":{"scripts":{"join/index.js":"index.js"}},"_npmVersion":"1.1.66","description":"Join a list","maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"dependencies":{},"readmeFilename":"Readme.md","devDependencies":{"mocha":"*","should":"*"},"_id":"join-component@1.1.0","version":"1.1.0"}