{"_id":"compound-subject","_rev":"299334","name":"compound-subject","description":"A tiny JavaScript library for converting arrays of strings to compound subjects","dist-tags":{"latest":"0.0.2"},"maintainers":[{"name":"adamshaylor","email":"business@adamshaylor.com"}],"time":{"modified":"2021-06-03T19:02:41.000Z","created":"2014-08-02T00:38:07.565Z","0.0.2":"2017-03-15T18:52:35.278Z","0.0.1":"2014-08-14T15:53:53.403Z","0.0.0":"2014-08-02T00:38:07.565Z"},"users":{},"author":{"name":"Adam Shaylor","email":"business@adamshaylor.com"},"repository":{"type":"git","url":"git+https://github.com/adamshaylor/compound-subject.git"},"versions":{"0.0.2":{"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","size":3412,"noattachment":false,"key":"/compound-subject/-/compound-subject-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/compound-subject/download/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":{},"publish_time":1489603955278,"_cnpm_publish_time":1489603955278,"_hasShrinkwrap":false},"0.0.1":{"name":"compound-subject","version":"0.0.1","description":"A tiny JavaScript library for converting arrays of strings to compound subjects","main":"compound-subject.js","dependencies":{},"devDependencies":{"expresso":"~0.9.2","grunt":"~0.4.5","grunt-contrib-uglify":"~0.5.1"},"scripts":{"test":"expresso test/*"},"repository":{"type":"git","url":"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":"4c85e1a8b9dd752dc0b291b22f4799ee73530b3b","_id":"compound-subject@0.0.1","_shasum":"271554698a15ae608b1dfcafd30b7ba1ea892c4b","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"adamshaylor","email":"business@adamshaylor.com"},"maintainers":[{"name":"adamshaylor","email":"business@adamshaylor.com"}],"dist":{"shasum":"271554698a15ae608b1dfcafd30b7ba1ea892c4b","size":3001,"noattachment":false,"key":"/compound-subject/-/compound-subject-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/compound-subject/download/compound-subject-0.0.1.tgz"},"directories":{},"publish_time":1408031633403,"_cnpm_publish_time":1408031633403,"_hasShrinkwrap":false},"0.0.0":{"name":"compound-subject","version":"0.0.0","description":"A tiny JavaScript library for converting arrays of strings to compound subjects","main":"compound-subject.js","dependencies":{},"devDependencies":{"expresso":"~0.9.2","grunt":"~0.4.5","grunt-contrib-uglify":"~0.5.1"},"scripts":{"test":"expresso test/*"},"repository":{"type":"git","url":"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":"68aa28b3af6f170c4b34dcdbee4217cb58538b13","_id":"compound-subject@0.0.0","_shasum":"37c7fdf30746495f1456c4d80c2617ac5e71d998","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"adamshaylor","email":"business@adamshaylor.com"},"maintainers":[{"name":"adamshaylor","email":"business@adamshaylor.com"}],"dist":{"shasum":"37c7fdf30746495f1456c4d80c2617ac5e71d998","size":3016,"noattachment":false,"key":"/compound-subject/-/compound-subject-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/compound-subject/download/compound-subject-0.0.0.tgz"},"directories":{},"publish_time":1406939887565,"_cnpm_publish_time":1406939887565,"_hasShrinkwrap":false}},"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","_attachments":{},"homepage":"https://github.com/adamshaylor/compound-subject","bugs":{"url":"https://github.com/adamshaylor/compound-subject/issues"},"license":"MIT"}