{"_id":"combinations","_rev":"11-9e498c142d58a2d8b76fc5a3cebe6e85","name":"combinations","description":"find all combinations from array","dist-tags":{"latest":"1.0.0"},"versions":{"0.1.0":{"name":"combinations","version":"0.1.0","description":"find all combinations from array","main":"index.js","repository":{"type":"git","url":"git://github.com/jgallen23/combinations.git"},"keywords":["combination","combo","array"],"author":{"name":"Greg Allen","email":"@jgaui","url":"http://jga.me"},"license":"MIT","dependencies":{},"devDependencies":{"mocha":"*"},"_id":"combinations@0.1.0","dist":{"shasum":"f441b4862e856900392fd16eeca1868621d7d942","tarball":"https://registry.npmjs.org/combinations/-/combinations-0.1.0.tgz","integrity":"sha512-u3OfLMVLugMAcqAy9z4lMsZ/CdlAw25LvbvkQ7wYoq9DP5N3CaFHPkSM4JwouEG4C55VwXQNhs1K3nb3e4/ifw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXWMHyHhbTHejmPAv7lq2CHu5b8x4ynE+46/51g4pocAIgOTqnGUnNniOKgFq57LllL2qlGKfZY88c3kjSwlcR5qE="}]},"maintainers":[{"name":"jga","email":"me@jga.me"}],"directories":{}},"0.1.1":{"name":"combinations","version":"0.1.1","description":"find all combinations from array","main":"index.js","repository":{"type":"git","url":"git://github.com/jgallen23/combinations.git"},"keywords":["combination","combo","array"],"scripts":{"test":"mocha --ui tdd"},"author":{"name":"Greg Allen","email":"@greg_allen","url":"http://jga.me"},"license":"MIT","dependencies":{},"devDependencies":{"mocha":"*"},"gitHead":"934087dca521a23a747ccfc7958016ea97f5c5b1","bugs":{"url":"https://github.com/jgallen23/combinations/issues"},"homepage":"https://github.com/jgallen23/combinations#readme","_id":"combinations@0.1.1","_shasum":"8a18faa7b972d0f962f7a87be1bb9a66c18cb8b2","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"jga","email":"code@firstandthird.com"},"dist":{"shasum":"8a18faa7b972d0f962f7a87be1bb9a66c18cb8b2","tarball":"https://registry.npmjs.org/combinations/-/combinations-0.1.1.tgz","integrity":"sha512-4rDSQFaD3njADMiPqnqGDrnguTEmvEX8RAeWmBdUpLTUqw/9MSKz2QuG5HPr+ixyyEBxPV8ZgoMgNuPlMCELEQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7YWF20QlmwSIG10K6vEI6CxRzq6rdAtgVQ9THRYJcGgIhAIZY6M3zz7Py9e/6vS3GLqnNJNFMfy+dAX5CQ1UvQ4LZ"}]},"maintainers":[{"name":"jga","email":"me@jga.me"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/combinations-0.1.1.tgz_1465227719108_0.24768990324810147"},"directories":{}},"1.0.0":{"name":"combinations","version":"1.0.0","description":"find all combinations from array","main":"index.js","repository":{"type":"git","url":"git://github.com/jgallen23/combinations.git"},"keywords":["combination","combo","array"],"scripts":{"test":"mocha --ui tdd"},"author":{"name":"Greg Allen","email":"@greg_allen","url":"http://jga.me"},"license":"MIT","dependencies":{},"devDependencies":{"mocha":"*"},"gitHead":"9b7f1a904eae2a5aadd80bc58966220704c0eb46","bugs":{"url":"https://github.com/jgallen23/combinations/issues"},"homepage":"https://github.com/jgallen23/combinations#readme","_id":"combinations@1.0.0","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-aVgTfI/dewHblSn4gF+NZHvS7wtwg9YAPF2EknHMdH+xLsXLLIMpmHkSj64Zxs/R2m9VAAgn3bENjssrn7V4vQ==","shasum":"d6bd9ce6468a13eba4651c85b57db12547892b1c","tarball":"https://registry.npmjs.org/combinations/-/combinations-1.0.0.tgz","fileCount":6,"unpackedSize":4465,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdwFivCRA9TVsSAnZWagAAlHEP+wQPdKQOgo/y9ktU6Dc3\nNyXfkTGLJeyzdW/+JYa617/O7FEJMClzGFkIxQBjoJXS8gMpRgElc60s59hh\nBCXUJhl4ZIb6VCWZZ5usbLHf99hHY/4ce/3etDsr9ZYhjdyWcTKKF+gPyEfE\nov3W+SxG8fJz88OMt6OQT7zqU+BFE65kwAIZzOAYxscp2CPw0FQWh56KGo58\ndWB98G2UPPbhOr0McdJFurJm9/gkBQsQOgoJNIZ+ZO64FyL+0iqZGY+kBJAO\nz8sfdc2kkeXow97nCOjjiipu0kRbZAWgqCj6xqNIfOP7UrPT1nz14DbsG+tE\n0WLwDDTtYEl2EW/8xHw6uOzgqkYNN2jinW4q/qXmA0S7RWUQImXWGLOSiqof\nKpoduTZBKoEt9Phyv+u0XJCUd4lUlu5VejgCv0BH5Zg7WE/tuDv83l3oRluR\nm+so1Qj++JILy73j7hj9MlmZcE0Cm7F28xUEhGx9Zph9EYl1ary0TNbMAAan\nzXEgkuQTGlb7IcNgeSRVzoZsTcs7/k7fzFYbttQCWZsLSm0mRPEOgwS8GB0F\nILEhWJRuor2Nxuc07mvYY9Jd2RnBbTDd2bYpXqT/IYSwzw0ZxQktCMB7NVbO\npq3GiNSsrByH6zsjmkL9V+faLZsvCgOTcmSK9pf8CATrPEiYqgEmHOKp2pH4\nIG0T\r\n=EtLK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICBTUOuL2RyOLqz92OZuu/DTOXa7BDhr6H+NXtw5hhRmAiBskic/vuPKunaTQBVF0S0R3zh4es4rJGsAASetzrgFQA=="}]},"maintainers":[{"email":"code@firstandthird.com","name":"jga"}],"_npmUser":{"name":"jga","email":"code@firstandthird.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/combinations_1.0.0_1572886703131_0.9244979858731892"},"_hasShrinkwrap":false}},"readme":"Combinations [![Build Status](https://travis-ci.org/jgallen23/combinations.svg?branch=master)](https://travis-ci.org/jgallen23/combinations)\n============\n\n# Installation\n\n    npm install combinations\n\n# Usage\n\n    combinations(array[, min_output_array_size])\n\n*   takes in an array, and outputs an array of arrays, containing all possible combinations of values in the original array.\n*   combinations are of all sizes: all combinations of one element, and all combinations of 2 elements, and so on\n*   minimum number of elements in a combination can be specified (min_output_array_size)\n*   maximum number of elements in a combination can be also specified\n*   if maximum combination value is bigger than array elements it will be overridden to the array length\n\n# Example\n\n    var combinations = require('combinations');\n    var myArray = ['red', 'orange', 'yellow', 'green'];\n    \n    combinations(myArray); \n  \n    //Output:\n    //  [ [ 'red' ],                      [ 'orange' ],    \n    //    [ 'yellow' ],                   [ 'green' ],  \n    //    [ 'red', 'orange' ],            [ 'red', 'yellow' ],\n    //    [ 'red', 'green' ],             [ 'orange', 'yellow' ],\n    //    [ 'orange', 'green' ],          [ 'yellow', 'green' ],\n    //    [ 'red', 'orange', 'yellow' ],  [ 'red', 'orange', 'green' ],\n    //    [ 'red', 'yellow', 'green' ],   [ 'orange', 'yellow', 'green' ],\n    //    [ 'red', 'orange', 'yellow', 'green' ] ]\n\n# Example with a minimum array size\n\n    combinations(myArray, 2);\n    \n    //Output:\n    //  [ [ 'red', 'orange' ],            [ 'red', 'yellow' ],\n    //    [ 'red', 'green' ],             [ 'orange', 'yellow' ],\n    //    [ 'orange', 'green' ],          [ 'yellow', 'green' ],\n    //    [ 'red', 'orange', 'yellow' ],  [ 'red', 'orange', 'green' ],\n    //    [ 'red', 'yellow', 'green' ],   [ 'orange', 'yellow', 'green' ],\n    //    [ 'red', 'orange', 'yellow', 'green' ] ]\n\n# Example with a minimum and maximum array size\n\n    combinations(myArray, 2, 3);\n    \n    //Output:\n    //  [ [ 'red', 'orange' ],            [ 'red', 'yellow' ],\n    //    [ 'red', 'green' ],             [ 'orange', 'yellow' ],\n    //    [ 'orange', 'green' ],          [ 'yellow', 'green' ],\n    //    [ 'red', 'orange', 'yellow' ],  [ 'red', 'orange', 'green' ],\n    //    [ 'red', 'yellow', 'green' ],   [ 'orange', 'yellow', 'green' ] ]","maintainers":[{"email":"code@firstandthird.com","name":"jga"}],"time":{"modified":"2022-06-13T06:33:46.216Z","created":"2012-08-12T21:52:23.989Z","0.1.0":"2012-08-12T21:52:25.079Z","0.1.1":"2016-06-06T15:42:02.267Z","1.0.0":"2019-11-04T16:58:23.246Z"},"author":{"name":"Greg Allen","email":"@greg_allen","url":"http://jga.me"},"repository":{"type":"git","url":"git://github.com/jgallen23/combinations.git"},"users":{},"homepage":"https://github.com/jgallen23/combinations#readme","keywords":["combination","combo","array"],"bugs":{"url":"https://github.com/jgallen23/combinations/issues"},"license":"MIT","readmeFilename":"README.md"}