{"_id":"unique-words","_rev":"225518","name":"unique-words","description":"Returns an array of unique words, or the number of occurrences of each word in a string or list.","dist-tags":{"latest":"2.0.1"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"vanchoy","email":"super.ludiq@gmail.com"}],"time":{"modified":"2021-06-03T15:42:31.000Z","created":"2014-03-27T06:31:11.285Z","2.0.1":"2018-07-17T13:51:28.166Z","1.0.0":"2014-12-20T05:42:29.016Z","0.0.2":"2014-03-27T06:31:11.285Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"http://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/unique-words.git"},"versions":{"2.0.1":{"name":"unique-words","description":"Returns an array of unique words, or the number of occurrences of each word in a string or list.","version":"2.0.1","homepage":"https://github.com/jonschlinkert/unique-words","author":{"name":"Jon Schlinkert","url":"http://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/unique-words.git"},"bugs":{"url":"https://github.com/jonschlinkert/unique-words/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=8"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^1.0.0","mocha":"^5.2.0"},"keywords":["keyword","uniq","unique","util","utility","word","words"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true}},"gitHead":"0ccaa9287cb094cc97757af90ac2af158e4b018e","_id":"unique-words@2.0.1","_npmVersion":"6.1.0","_nodeVersion":"10.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"238bdaef09595b626e61dbf3db7cbb6290e6c654","size":2492,"noattachment":false,"key":"/unique-words/-/unique-words-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unique-words/download/unique-words-2.0.1.tgz"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"vanchoy","email":"super.ludiq@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unique-words_2.0.1_1531835488096_0.36868090735535897"},"_hasShrinkwrap":false,"publish_time":1531835488166,"_cnpm_publish_time":1531835488166},"1.0.0":{"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":"vanchoy","email":"super.ludiq@gmail.com"}],"dist":{"shasum":"40b26a19f98061663c813cd97a1a20a7f8b55990","size":2406,"noattachment":false,"key":"/unique-words/-/unique-words-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unique-words/download/unique-words-1.0.0.tgz"},"directories":{},"publish_time":1419054149016,"_cnpm_publish_time":1419054149016,"_hasShrinkwrap":false},"0.0.2":{"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","size":2482,"noattachment":false,"key":"/unique-words/-/unique-words-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/unique-words/download/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"},{"name":"vanchoy","email":"super.ludiq@gmail.com"}],"directories":{},"publish_time":1395901871285,"_cnpm_publish_time":1395901871285,"_hasShrinkwrap":false}},"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._","_attachments":{},"homepage":"https://github.com/jonschlinkert/unique-words","bugs":{"url":"https://github.com/jonschlinkert/unique-words/issues"},"license":"MIT"}