{"_id":"unique-words","_rev":"859720","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":"tunnckocore","email":"mameto_100@mail.bg"}],"time":{"modified":"2024-07-09T07:11:52.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":{"integrity":"sha512-5nB/5lAAfGlqJRVGfxJ8G9sa/Xs4lvosqQPENQUwM7wvGkEy0pV88H0VZ3+XvY2mBpwhzQd1U9NSEIx0vTwA7w==","shasum":"238bdaef09595b626e61dbf3db7cbb6290e6c654","tarball":"http://registry-npm.ywwl.com/unique-words/download/unique-words-2.0.1.tgz","fileCount":4,"unpackedSize":5395,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbTfRgCRA9TVsSAnZWagAAHvwP/2wN5LBh8KSGrLcxgDiz\nbDfNKcwV/siolx0oU2PcKzaNISgqA2CIgXuLMmZDgJZ3hJRxg2FlGn+fDPDq\nKn38OQdaEiLdowewZWK2dP5qF+yrR9DnD9a3fOucumC2Sb+wN7Qx+5DY1P5P\nGzLKMa6pCY2Q5tcNW9mnSB7mi6rNZz5zYuFWLnJAWJJlRR1KfA08mw2TPCMU\nKJY6tPm8FiJkiz6N8kxUcl5ZOdsxcMcfvy9xAa27vmM0kspReuZjsk+fHZtd\n0LH49XIHv2hXLx7cLD7dmvJ2cqThbMC2fTaafv9rru3dEGDiJwIIl7f+Cgb4\nzYE51KmKMln8DwNeTa1O/k5LNzJpVngfxz1a8kUBfijyaOMemkAckQxoqrJu\nUWNrDDFtw+XsGhslLjwVugWyPDDIZJo8lvljYHO6pl8InCh50/Tfq+jTULma\nWhAw8UU52dcL2k4tIXbRt+rrg1FIImczNX7hyNZDnDKNzFLXcylA7mmSu2h1\nKLeo7tjZYHKcf5mcT1rYhDjinQgtRRuFWejvleYdMosRzMf9lFCzzaBEF56C\n83GKuglIrl4pcN4ysCwLuwr42osB+DgOLXIAM6ZqHj0KeXmfl5YfgTaymKVC\nBTpR1nBfSLFF211NwYsoZWkvG+pI6Euj3qtIjq0z1vmqX4+RR63Z4+kGVv9Q\nq/hp\r\n=bMdk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHH3ihA2SFyqHfbsHWGhEiicjGJ/rs3g4lam8Qr78GGBAiEAouuWYWnMRjAuX2DW+60r7kry+7ccFtHEadgRk7RivPs="}],"size":2492,"noattachment":false,"key":"/unique-words/-/unique-words-2.0.1.tgz"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"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":"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":{},"publish_time":1419054149016,"_cnpm_publish_time":1419054149016},"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","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":{},"publish_time":1395901871285,"_cnpm_publish_time":1395901871285}},"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"}