{"id":20391092,"url":"https://github.com/compactjs/shuffle","last_synced_at":"2025-03-05T00:14:43.464Z","repository":{"id":38174244,"uuid":"261849309","full_name":"CompactJS/shuffle","owner":"CompactJS","description":"Shuffle arrays without sideeffects","archived":false,"fork":false,"pushed_at":"2022-06-10T00:50:06.000Z","size":781,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-15T21:21:44.798Z","etag":null,"topics":["array","javascript","no-side-effects","shuffle"],"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/CompactJS.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-05-06T18:44:41.000Z","updated_at":"2021-04-19T10:54:53.000Z","dependencies_parsed_at":"2022-08-20T17:10:46.992Z","dependency_job_id":null,"html_url":"https://github.com/CompactJS/shuffle","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CompactJS%2Fshuffle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CompactJS%2Fshuffle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CompactJS%2Fshuffle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CompactJS%2Fshuffle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CompactJS","download_url":"https://codeload.github.com/CompactJS/shuffle/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241940579,"owners_count":20045883,"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":["array","javascript","no-side-effects","shuffle"],"created_at":"2024-11-15T03:28:43.126Z","updated_at":"2025-03-05T00:14:43.443Z","avatar_url":"https://github.com/CompactJS.png","language":"JavaScript","readme":"\u003ch1 align=\"center\"\u003e🃏\u003cbr/\u003e@compactjs/shuffle\u003c/h1\u003e\n\u003ch3 align=\"center\"\u003eShuffle arrays\u003c/h3\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@compactjs/shuffle\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Version\" src=\"https://img.shields.io/npm/v/@compactjs/shuffle.svg\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/CompactJS/shuffle/blob/main/LICENSE\" target=\"_blank\"\u003e\n    \u003cimg alt=\"License: MIT\" src=\"https://img.shields.io/github/license/compactjs/shuffle\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  ·\n  \u003ca href=\"https://github.com/CompactJS/shuffle#readme\"\u003eHomepage\u003c/a\u003e\n  ·\n  \u003ca href=\"https://github.com/CompactJS/shuffle/issues\"\u003eReport Bug / Request Feature\u003c/a\u003e\n  ·\n\u003c/p\u003e\n\n## Table of Contents\n\n- [Installation](#Install)\n- [Usage](#usage)\n- [Test](#run-tests)\n- [Contact](#contact)\n- [Contributing](#Contributing)\n- [License](#license)\n\n## Install\n\n### NPM:\n\n```sh\nnpm install @compactjs/shuffle\n```\n\n## Usage\n\n```typescript\n/**\n * returns a shuffled array\n */\nfunction shuffle(array: any[]): any[];\n```\n\n### As module:\n\n```javascript\nimport { shuffle } from '@compactjs/shuffle';\n```\n\n### Example:\n\n```javascript\nconst array = [0, 1, 2, 3];\nconst shuffled = shuffle(array);\n\nconsole.log(array); // =\u003e [0, 1, 2, 3]\nconsole.log(shuffled); // =\u003e e.g. [3, 1, 2, 0]\n```\n\n## Run tests\n\n```sh\nnpm run test\n```\n\n## Contact\n\n👤 **Timo Bechtel**\n\n- Website: https://timobechtel.com\n- Twitter: [@TimoBechtel](https://twitter.com/TimoBechtel)\n- GitHub: [@TimoBechtel](https://github.com/TimoBechtel)\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome!\u003cbr /\u003e\n\n1. Check [issues](https://github.com/CompactJS/shuffle/issues)\n1. Fork the Project\n1. Create your Feature Branch (`git checkout -b feat/AmazingFeature`)\n1. Test your changes `npm run test`\n1. Commit your Changes (`git commit -m 'feat: add amazingFeature'`)\n1. Push to the Branch (`git push origin feat/AmazingFeature`)\n1. Open a Pull Request\n\n### Commit messages\n\nThis project uses semantic-release for automated release versions. So commits in this project follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0-beta.2/) guidelines. I recommend using [commitizen](https://github.com/commitizen/cz-cli) for automated commit messages.\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n\n## 📝 License\n\nDistributed under the [MIT](https://github.com/CompactJS/shuffle/blob/main/LICENSE) License.\n\n---\n\n_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompactjs%2Fshuffle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompactjs%2Fshuffle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompactjs%2Fshuffle/lists"}