{"name":"unique-words","description":"Return the unique words in a string or array.","version":"1.0.0","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"},"engines":{"node":">=0.8"},"scripts":{"test":"mocha --require should"},"dependencies":{"array-unique":"^0.1.1"},"devDependencies":{"mocha":"^2.0.1","should":"^4.4.1"},"keywords":["keyword","uniq","unique","util","utility","word"],"gitHead":"271cc9b5bf27c036b9e1ad5c312b1dd79b12d133","_id":"unique-words@1.0.0","_shasum":"40b26a19f98061663c813cd97a1a20a7f8b55990","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"dist":{"shasum":"40b26a19f98061663c813cd97a1a20a7f8b55990","tarball":"http://registry-npm.ywwl.com/unique-words/download/unique-words-1.0.0.tgz","integrity":"sha512-jq8Q3kG2qE0uZiU48VsGeLaZ3L1cECFOWrgqVdsUPk9MmgFAiLI3XGKmIcKtyxX7iwp+Up4hGqqjcWTStDeqsQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCL543cLwAZfwfDMSKMOSQMgPt8Nl5QcLJeSbipLZXKmQIhAP1N9t3oTk5rGb1f0Mrxp7OAttlWDAnCl4u4SyB+RBtr"}],"size":2406,"noattachment":false,"key":"/unique-words/-/unique-words-1.0.0.tgz"},"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":1419054149016,"_cnpm_publish_time":1419054149016,"dist-tags":{"latest":"2.0.1"}}