{"id":16471882,"url":"https://github.com/abranhe/permutated","last_synced_at":"2025-02-28T03:21:20.748Z","repository":{"id":57322254,"uuid":"142537389","full_name":"abranhe/permutated","owner":"abranhe","description":"𝓟ℯ𝓇𝑚𝓊𝓉𝒶𝓉ℯ𝒹: get all available combinations","archived":false,"fork":false,"pushed_at":"2019-10-01T14:44:22.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-10T23:35:05.447Z","etag":null,"topics":["node-module","npm","permutation"],"latest_commit_sha":null,"homepage":"https://p.abranhe.com/permutated/","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/abranhe.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/funding.yml","license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"patreon":"abranhe","open_collective":"abranhe","custom":"https://cash.me/$abranhe"}},"created_at":"2018-07-27T06:31:58.000Z","updated_at":"2020-02-09T02:53:45.000Z","dependencies_parsed_at":"2022-08-26T01:11:20.777Z","dependency_job_id":null,"html_url":"https://github.com/abranhe/permutated","commit_stats":null,"previous_names":["abranhe/permutated","abrahamhba/permutated"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abranhe%2Fpermutated","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abranhe%2Fpermutated/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abranhe%2Fpermutated/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abranhe%2Fpermutated/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abranhe","download_url":"https://codeload.github.com/abranhe/permutated/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241094251,"owners_count":19908647,"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":["node-module","npm","permutation"],"created_at":"2024-10-11T12:15:07.376Z","updated_at":"2025-02-28T03:21:20.710Z","avatar_url":"https://github.com/abranhe.png","language":"JavaScript","readme":"\u003cp\u003e\n\t\u003ca href=\"https://www.npmjs.com/package/permutated\"\u003e\n\t\t\u003cimg src=\"https://cdn.abranhe.com/projects/permutated/logo.svg\" width=\"30%\"\u003e\n\t\u003c/a\u003e\n\t\u003cbr\u003e\n\u003c/p\u003e\n\n# 𝓟ℯ𝓇𝑚𝓊𝓉𝒶𝓉ℯ𝒹\n\n\u003e Get all available combinations\n\n[![](https://img.shields.io/travis/abranhe/permutated.svg?logo=travis)](https://travis-ci.org/abranhe/permutated)\n[![](https://abranhe.com/badge.svg)](https://github.com/abranhe)\n[![](https://cdn.abranhe.com/badges/cash-me.svg)](https://cash.me/$abranhe)\n[![](https://cdn.abranhe.com/badges/patreon.svg)](https://patreon.com/abranhe)\n[![](https://img.shields.io/github/license/abranhe/permutated.svg)](https://github.com/abranhe/permutated/blob/master/license)\n[![](https://img.shields.io/npm/v/permutated.svg)](https://npmjs.com/package/permutated)\n\n\u003cbr\u003e\n\nIn mathematics, permutation is the act of arranging the members of a set into a sequence or order, or, if the set is already ordered, rearranging (reordering) its elements a process called permuting. Permutations differ from combinations, which are selections of some members of a set regardless of order.\n\n[Read More...](https://en.wikipedia.org/wiki/Permutation)\n\n### Complexity?\n\n7 letters word ~\u003e [7!](https://www.google.com/search?q=7!)  ~\u003e 5040 available combinations to generate.\n\n## Important \n\nThis module uses [Array.prototype.flat()](https://node.green/#ES2019-features-Array-prototype--flat--flatMap--Array-prototype-flat) that was introduced on Node.js 11+. You can still use the previus version [(1.0.1)](https://www.npmjs.com/package/permutated/v/1.0.1) of permutated.\n\n## Install\n\n```\n$ npm install permutated\n```\n\n## Usage\n\n```js\nconst permutated = require('permutated');\n\npermutated('abc'));\n//=\u003e [ 'abc', 'acb', 'bac', 'bca', 'cab', 'cba' ]\n\npermutated.numberOfPermutations('1234567'));\n//=\u003e 5040\n```\n\n## API\n\n### permutated(word)\n\nReturn type: `string[] | string`\n\nReturn all the permuations available from a string.\n\n#### word\n\nType: `string`\n\nThe string to permutate.\n\n### numberOfPermutations(word)\n\nReturn Type: `number`\n\nGet the number of permuations avilable in a string.\n\n#### word\n\nType: `string`\n\nThe string to permutate.\n\n## Related\n\n- [all-words](https://github.com/abranhe/all-words): Generate all available words super fast\n\n## License\n\nMIT © [Carlos Abraham](https://abranhe.com)\n","funding_links":["https://patreon.com/abranhe","https://opencollective.com/abranhe","https://cash.me/$abranhe"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabranhe%2Fpermutated","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabranhe%2Fpermutated","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabranhe%2Fpermutated/lists"}