{"_id":"cartesian","_rev":"1622114","name":"cartesian","description":"Computes the cartesian product of arrays provided by an array or an object","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"alexindigo","email":"iam@alexindigo.com"}],"time":{"modified":"2026-10-22T06:11:55.000Z","created":"2015-12-02T21:24:01.133Z","1.0.1":"2016-12-08T06:37:43.961Z","1.0.0":"2015-12-02T21:24:01.133Z"},"users":{"antixrist":true},"author":{"name":"Alex Indigo","email":"iam@alexindigo.com"},"repository":{"type":"git","url":"git+https://github.com/alexindigo/cartesian.git"},"versions":{"1.0.1":{"name":"cartesian","version":"1.0.1","description":"Computes the cartesian product of arrays provided by an array or an object","main":"index.js","scripts":{"test":"istanbul cover test.js","lint":"eslint *.js","debug":"node test.js","check":"istanbul check-coverage coverage/coverage.json"},"pre-commit":["lint","test","check"],"repository":{"type":"git","url":"git+https://github.com/alexindigo/cartesian.git"},"keywords":["cartesian","cartesian product","array","object","properties","permutation","combination"],"author":{"name":"Alex Indigo","email":"iam@alexindigo.com"},"license":"MIT","bugs":{"url":"https://github.com/alexindigo/cartesian/issues"},"homepage":"https://github.com/alexindigo/cartesian#readme","devDependencies":{"coveralls":"^2.11.15","eslint":"^3.11.1","istanbul":"^0.4.5","pre-commit":"^1.1.3"},"dependencies":{"xtend":"^4.0.1"},"gitHead":"378663ad87902a058bd7202eb3e87a91993c1d3a","_id":"cartesian@1.0.1","_shasum":"ae3fc8a63e2ba7e2c4989ce696207457bcae65af","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.6.2","_npmUser":{"name":"alexindigo","email":"iam@alexindigo.com"},"dist":{"shasum":"ae3fc8a63e2ba7e2c4989ce696207457bcae65af","tarball":"http://registry-npm.ywwl.com/cartesian/download/cartesian-1.0.1.tgz","integrity":"sha512-tR3qKRYpRJ6FXEGuoBwpuCYcwydrk1N2rduy7eWg1Msepi3i5fCxheryw4VBlCqjCbk3Vhjh3eg+IGHtl5H74A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFcEeSfqufueg5TJn9EQ+nrDTx5fSrBPaILENBJpYBDZAiAjaoqRlp6xPsUqAVklfgbhCmXhifR8wD0vFGoCQetJxA=="}],"size":2826,"noattachment":false,"key":"/cartesian/-/cartesian-1.0.1.tgz"},"maintainers":[{"name":"alexindigo","email":"iam@alexindigo.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cartesian-1.0.1.tgz_1481179063705_0.16502835741266608"},"publish_time":1481179063961,"_cnpm_publish_time":1481179063961},"1.0.0":{"name":"cartesian","version":"1.0.0","description":"Computes the cartesian product of arrays provided by an array or an object","main":"index.js","scripts":{"test":"istanbul cover test.js","lint":"eslint *.js","debug":"node test.js","check":"istanbul check-coverage coverage/coverage.json"},"pre-commit":["lint","test","check"],"repository":{"type":"git","url":"git+https://github.com/alexindigo/cartesian.git"},"keywords":["cartesian","cartesian product","array","object","properties","permutation","combination"],"author":{"name":"Alex Indigo","email":"iam@alexindigo.com"},"license":"MIT","bugs":{"url":"https://github.com/alexindigo/cartesian/issues"},"homepage":"https://github.com/alexindigo/cartesian#readme","devDependencies":{"coveralls":"^2.11.4","eslint":"^1.10.3","istanbul":"^0.4.1","pre-commit":"^1.1.2"},"dependencies":{"xtend":"^4.0.1"},"gitHead":"4de6dd493a34eaddce63f3c809dbb148322715e9","_id":"cartesian@1.0.0","_shasum":"41751a1f58ff0710441cca676b583de92c290e0b","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"alexindigo","email":"iam@alexindigo.com"},"dist":{"shasum":"41751a1f58ff0710441cca676b583de92c290e0b","tarball":"http://registry-npm.ywwl.com/cartesian/download/cartesian-1.0.0.tgz","integrity":"sha512-0FsU5g/b1u/cMlODdHH7+ppNEadfY4WFQtP/UW4dsvTPkqhjOqmbfMqnIOHtyvirtftlmKXm3Kf0fhUE1mTyqA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFzXQVAiJEOBlD0Ao4qmdHZbZa39nfcvN6WK3Qo5R+iUAiEAlFoFYuZeRRyx7MgeZD81F4X8KJKWd7cgGUdVwvdAFQg="}],"size":2720,"noattachment":false,"key":"/cartesian/-/cartesian-1.0.0.tgz"},"maintainers":[{"name":"alexindigo","email":"iam@alexindigo.com"}],"publish_time":1449091441133,"_cnpm_publish_time":1449091441133}},"readme":"# Cartesian\nComputes the cartesian product of arrays provided by an array or an object\n\n[![Build Status](https://img.shields.io/travis/alexindigo/cartesian/master.svg?style=flat-square)](https://travis-ci.org/alexindigo/cartesian)\n[![Coverage Status](https://img.shields.io/coveralls/alexindigo/cartesian/master.svg?style=flat-square)](https://coveralls.io/github/alexindigo/cartesian?branch=master)\n\n## Install\n\n```\nnpm install cartesian --save\n```\n\n## Examples\n\n```javascript\nvar cartesian = require('cartesian');\n```\n\n### Array or arrays:\n\n```javascript\ncartesian([\n  ['A', 'B', 'C'],\n  ['M'],\n  ['X', 'Y'],\n  'Z'\n]);\n\n// =>\n// [\n//   [ 'A', 'M', 'X', 'Z' ],\n//   [ 'A', 'M', 'Y', 'Z' ],\n//   [ 'B', 'M', 'X', 'Z' ],\n//   [ 'B', 'M', 'Y', 'Z' ],\n//   [ 'C', 'M', 'X', 'Z' ],\n//   [ 'C', 'M', 'Y', 'Z' ]\n// ]\n```\n\n### Object with array properties:\n\n```javascript\ncartesian({\n  cdn  : ['image1', 'image2'],\n  path : '/dir',\n  files: ['file1', 'file2', 'file3']\n});\n\n// =>\n// [\n//   { cdn: 'image1', path: '/dir', files: 'file1' },\n//   { cdn: 'image1', path: '/dir', files: 'file2' },\n//   { cdn: 'image1', path: '/dir', files: 'file3' },\n//   { cdn: 'image2', path: '/dir', files: 'file1' },\n//   { cdn: 'image2', path: '/dir', files: 'file2' },\n//   { cdn: 'image2', path: '/dir', files: 'file3' }\n// ]\n```\n\nFor more examples check out [`test.js`](test.js).\n\n## License\n\n[MIT](LICENSE)\n","_attachments":{},"homepage":"https://github.com/alexindigo/cartesian#readme","bugs":{"url":"https://github.com/alexindigo/cartesian/issues"},"license":"MIT"}