{ "_args": [ [ { "raw": "join-component@^1.1.0", "scope": null, "escapedName": "join-component", "name": "join-component", "rawSpec": "^1.1.0", "spec": ">=1.1.0 <2.0.0", "type": "range" }, "/home/jdaugherty/work/GT2/GT2-Android/node_modules/@segment/loosely-validate-event" ] ], "_from": "join-component@>=1.1.0 <2.0.0", "_id": "join-component@1.1.0", "_inCache": true, "_location": "/join-component", "_npmUser": { "name": "tjholowaychuk", "email": "tj@vision-media.ca" }, "_npmVersion": "1.1.66", "_phantomChildren": {}, "_requested": { "raw": "join-component@^1.1.0", "scope": null, "escapedName": "join-component", "name": "join-component", "rawSpec": "^1.1.0", "spec": ">=1.1.0 <2.0.0", "type": "range" }, "_requiredBy": [ "/@segment/loosely-validate-event" ], "_resolved": "https://registry.npmjs.org/join-component/-/join-component-1.1.0.tgz", "_shasum": "b8417b750661a392bee2c2537c68b2a9d4977cd5", "_shrinkwrap": null, "_spec": "join-component@^1.1.0", "_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/@segment/loosely-validate-event", "component": { "scripts": { "join/index.js": "index.js" } }, "dependencies": {}, "description": "Join a list", "devDependencies": { "mocha": "*", "should": "*" }, "directories": {}, "dist": { "shasum": "b8417b750661a392bee2c2537c68b2a9d4977cd5", "tarball": "https://registry.npmjs.org/join-component/-/join-component-1.1.0.tgz" }, "keywords": [], "license": "MIT", "maintainers": [ { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "name": "join-component", "optionalDependencies": {}, "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\n\n\n# join(arr)\nshould default to \"and\".\n\n```js\njoin(['foo', 'bar']).should.equal('foo and bar');\n```\n\n\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\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", "readmeFilename": "Readme.md", "repo": "component/join", "version": "1.1.0" }