{"name":"unique-words","description":"Return the unique words in a string or array.","version":"0.0.2","homepage":"https://github.com/jonschlinkert/unique-words","author":{"name":"Jon Schlinkert","url":"http://github.com/jonschlinkert/"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/unique-words.git"},"bugs":{"url":"https://github.com/jonschlinkert/unique-words/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/unique-words/blob/master/LICENSE-MIT"}],"keywords":["docs","documentation","generate","generator","markdown","templates","verb"],"engines":{"node":">=0.8"},"scripts":{"test":"mocha -R test"},"devDependencies":{"verb":"~0.1.20","chai":"~1.9.1"},"_id":"unique-words@0.0.2","dist":{"shasum":"645f2bc8a8c24b6fa3da52a76ce88423887deb9d","tarball":"http://registry-npm.ywwl.com/unique-words/download/unique-words-0.0.2.tgz","integrity":"sha512-Q2202gJ3VLtU8R/GMBbQZSgVQkPXQNrgOlBHGjWIp3dpeFRM+3e39goZC0lCkyKw3hW2MUNDeW7GkIeJ/shEPw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnIzJoIK0e7hb+CXhllcY/pB+8xM/qjRWGzVVr+ujRhgIgHoS2+Ce26l460ntKCxmbo81p5+F9ulUzujG9peDl51M="}],"size":2482,"noattachment":false,"key":"/unique-words/-/unique-words-0.0.2.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"readme":"# unique-words [![NPM version](https://img.shields.io/npm/v/unique-words.svg?style=flat)](https://www.npmjs.com/package/unique-words) [![NPM monthly downloads](https://img.shields.io/npm/dm/unique-words.svg?style=flat)](https://npmjs.org/package/unique-words) [![NPM total downloads](https://img.shields.io/npm/dt/unique-words.svg?style=flat)](https://npmjs.org/package/unique-words) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/unique-words.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/unique-words)\n\n> Returns an array of unique words, or the number of occurrences of each word in a string or list.\n\nPlease consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save unique-words\n```\n\n## Usage\n\n```js\nconst unique = require('unique-words');\n\nconsole.log(unique('one two one two three'));\n// => ['one', 'two', 'three']\n\nconsole.log(unique(['foo', 'foo', 'foo bar', 'bar', 'bar baz foo']));\n// => ['foo', 'bar', 'baz']\n```\n\n## .counts\n\nA `.counts()` method is exposed for getting the number of occurrences of each word.\n\n```js\nconsole.log(unique.counts('one two one two three'));\n//=> { one: 2, three: 1, two: 2 }\n```\n\n## Case sensitivity\n\nNote that words are case-sensitive. To get non-case-sensitive results, make all strings lower- or upper-case before passing them in.\n\n## About\n\n<details>\n<summary><strong>Contributing</strong></summary>\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n</details>\n\n<details>\n<summary><strong>Running Tests</strong></summary>\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n</details>\n\n<details>\n<summary><strong>Building docs</strong></summary>\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n</details>\n\n### Author\n\n**Jon Schlinkert**\n\n* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)\n* [GitHub Profile](https://github.com/jonschlinkert)\n* [Twitter Profile](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2018, [Jon Schlinkert](http://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on July 17, 2018._","publish_time":1395901871285,"_cnpm_publish_time":1395901871285,"dist-tags":{"latest":"2.0.1"}}