{"id":20780187,"url":"https://github.com/xotic750/power-set-x","last_synced_at":"2026-04-28T04:04:29.493Z","repository":{"id":3090964,"uuid":"48412358","full_name":"Xotic750/power-set-x","owner":"Xotic750","description":"Calculates the Power Set of a set S. http://en.wikipedia.org/wiki/Power_set","archived":false,"fork":false,"pushed_at":"2023-01-04T23:31:30.000Z","size":3541,"stargazers_count":2,"open_issues_count":21,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-19T12:54:52.420Z","etag":null,"topics":["browser","ecmascript","nodejs","powerset"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Xotic750.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-22T05:32:48.000Z","updated_at":"2020-01-30T21:43:27.000Z","dependencies_parsed_at":"2023-01-13T12:16:52.631Z","dependency_job_id":null,"html_url":"https://github.com/Xotic750/power-set-x","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xotic750%2Fpower-set-x","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xotic750%2Fpower-set-x/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xotic750%2Fpower-set-x/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xotic750%2Fpower-set-x/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Xotic750","download_url":"https://codeload.github.com/Xotic750/power-set-x/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243123611,"owners_count":20240051,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser","ecmascript","nodejs","powerset"],"created_at":"2024-11-17T13:32:44.730Z","updated_at":"2025-12-26T04:32:43.615Z","avatar_url":"https://github.com/Xotic750.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca\n  href=\"https://travis-ci.org/Xotic750/power-set-x\"\n  title=\"Travis status\"\u003e\n\u003cimg\n  src=\"https://travis-ci.org/Xotic750/power-set-x.svg?branch=master\"\n  alt=\"Travis status\" height=\"18\"\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://david-dm.org/Xotic750/power-set-x\"\n  title=\"Dependency status\"\u003e\n\u003cimg src=\"https://david-dm.org/Xotic750/power-set-x/status.svg\"\n  alt=\"Dependency status\" height=\"18\"/\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://david-dm.org/Xotic750/power-set-x?type=dev\"\n  title=\"devDependency status\"\u003e\n\u003cimg src=\"https://david-dm.org/Xotic750/power-set-x/dev-status.svg\"\n  alt=\"devDependency status\" height=\"18\"/\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://badge.fury.io/js/power-set-x\"\n  title=\"npm version\"\u003e\n\u003cimg src=\"https://badge.fury.io/js/power-set-x.svg\"\n  alt=\"npm version\" height=\"18\"\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://www.jsdelivr.com/package/npm/power-set-x\"\n  title=\"jsDelivr hits\"\u003e\n\u003cimg src=\"https://data.jsdelivr.com/v1/package/npm/power-set-x/badge?style=rounded\"\n  alt=\"jsDelivr hits\" height=\"18\"\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://bettercodehub.com/results/Xotic750/power-set-x\"\n  title=\"bettercodehub score\"\u003e\n\u003cimg src=\"https://bettercodehub.com/edge/badge/Xotic750/power-set-x?branch=master\"\n  alt=\"bettercodehub score\" height=\"18\"\u003e\n\u003c/a\u003e\n\u003ca\n  href=\"https://coveralls.io/github/Xotic750/power-set-x?branch=master\"\n  title=\"Coverage Status\"\u003e\n\u003cimg src=\"https://coveralls.io/repos/github/Xotic750/power-set-x/badge.svg?branch=master\"\n  alt=\"Coverage Status\" height=\"18\"\u003e\n\u003c/a\u003e\n\n\u003ca name=\"module_power-set-x\"\u003e\u003c/a\u003e\n\n## power-set-x\n\nCalculates the Power Set of a set S.\n\n\u003ca name=\"exp_module_power-set-x--module.exports\"\u003e\u003c/a\u003e\n\n### `module.exports(value)` ⇒ \u003ccode\u003eArray.\u0026lt;Array\u0026gt;\u003c/code\u003e ⏏\n\nThis method calculates the Power Set of `value`. Array sparseness is\nignored.\n\nIn mathematics, the power set (or powerset) of any set S,\nwritten P(S), ℘(S), P(S), ℙ(S) or 2S, is the set of all subsets of S,\nincluding the empty set and S itself.\n\n**Kind**: Exported function  \n**Returns**: \u003ccode\u003eArray.\u0026lt;Array\u0026gt;\u003c/code\u003e - The power set of `value`.  \n**See**: http://en.wikipedia.org/wiki/Power_set\n\n| Param | Type               | Description                                     |\n| ----- | ------------------ | ----------------------------------------------- |\n| value | \u003ccode\u003eArray\u003c/code\u003e | The array like `value` to get the power set of. |\n\n**Example**\n\n```js\nimport powerSet from 'power-set-x';\n\nconsole.log(powerSet([1, 2, 3])); // [[], [3], [2], [2, 3], [1], [1, 3], [1, 2], [1, 2, 3]]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxotic750%2Fpower-set-x","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxotic750%2Fpower-set-x","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxotic750%2Fpower-set-x/lists"}