{"name":"compound-subject","version":"0.0.2","description":"A tiny JavaScript library for converting arrays of strings to compound subjects","main":"compound-subject.js","dependencies":{},"devDependencies":{"grunt":"~0.4.5","grunt-contrib-uglify":"~0.5.1","mocha":"^3.2.0"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/adamshaylor/compound-subject.git"},"keywords":["array","English","grammar","compound","subject","list","and","or","comma","semicolon"],"author":{"name":"Adam Shaylor","email":"business@adamshaylor.com"},"license":"MIT","bugs":{"url":"https://github.com/adamshaylor/compound-subject/issues"},"homepage":"https://github.com/adamshaylor/compound-subject","gitHead":"8d31b1694b1b771a987d4de49adc2bac62288fc4","_id":"compound-subject@0.0.2","_shasum":"fc25de09abaa8f37228af77ff3f71de6705c8ddd","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"adamshaylor","email":"business@adamshaylor.com"},"dist":{"shasum":"fc25de09abaa8f37228af77ff3f71de6705c8ddd","tarball":"http://registry-npm.ywwl.com/compound-subject/download/compound-subject-0.0.2.tgz","integrity":"sha512-1LI36W7YNonykX+eRR1YwE+rVfks77YPVUZzCNzolEuHnNdPDtp3dly/wH4wMvZEndE4i+4UOEPSAGZ8N6vZsw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpDVZo0fIIgrSgccoUxCOLH03L1dz+bJtGvfVvICDjIwIgOj1zHH8Wd/NxZn6AL6gzCAUYh04yIiI9rjPTB0fRgwc="}],"size":3412,"noattachment":false,"key":"/compound-subject/-/compound-subject-0.0.2.tgz"},"maintainers":[{"name":"adamshaylor","email":"business@adamshaylor.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/compound-subject-0.0.2.tgz_1489603953471_0.6120978689286858"},"directories":{},"readme":"compound-subject\n================\n\nA tiny JavaScript library for converting arrays of strings to compound subjects\n\n## Installation\n\n### Node\n\nIn your project directory:\n\n```shell\nnpm install --save compound-subject\n```\n\nAt the top of your module:\n\n```javascript\nvar compoundSubject = require('compound-subject');\n```\n\n### Bower\n\nIn your project directory:\n\n```shell\nbower install --save compound-subject\n```\n\nIn your HTML:\n\n```html\n<script src=\"bower_components/compound-subject/compound-subject.min.js\"></script>\n```\n\nOr if you want the dev version:\n\n```html\n<script src=\"bower_components/compound-subject/compound-subject.js\"></script>\n```\n\n`compoundSubject` will be defined in the global scope (i.e. `window`).\n\n## Usage\n\n```javascript\ncompoundSubject(['apple', 'banana', 'cherry']).make();\n\n// 'apple, banana and cherry'\n\n\ncompoundSubject(['apple', 'banana', 'cherry'])\n\t.endWith('or')\n\t.make();\n\n// 'apple, banana or cherry'\n\n\ncompoundSubject(['apple', 'banana', 'cherry'])\n\t.delimitAll()\n\t.endWith('and maybe')\n\t.make();\n\n// 'apple, banana, and maybe cherry'\n\n\ncompoundSubject([\n\t'a very crunchy Honeycrisp apple',\n\t'bananas at the pinnacle of ripeness',\n\t'delectable halved Rainier cherries'\n]).delimitWith(';')\n\t.delimitAll()\n\t.make();\n\n// 'a very crunchy Honeycrisp apple; bananas at the pinnacle of ripeness; and delectable halved Rainier cherries'\n```\n","publish_time":1489603955278,"_cnpm_publish_time":1489603955278,"dist-tags":{"latest":"0.0.2"}}