{"_id":"@armand-veress/shuffle-array","name":"@armand-veress/shuffle-array","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@armand-veress/shuffle-array","version":"0.1.0","description":"A small library that takes an array as input and returns a new array that is shuffled.","main":"dist/index.js","umd:main":"dist/index.umd.js","module":"dist/index.m.js","source":"src/index.js","scripts":{"build":"microbundle","pretest":"npm run build","test":"npx jest --coverage"},"repository":{"type":"git","url":"git+https://github.com/yourusername/shuffle-array.git"},"keywords":["array","shuffle","functional"],"author":{"name":"your name","email":"your-email@email.com","url":"https://yourwebsite.com"},"license":"MIT","bugs":{"url":"https://github.com/yourusername/shuffle-array/issues"},"homepage":"https://github.com/yourusername/shuffle-array#readme","devDependencies":{"jest":"^29.7.0","microbundle":"^0.15.1"},"_id":"@armand-veress/shuffle-array@0.1.0","_nodeVersion":"24.14.0","_npmVersion":"11.11.1","dist":{"integrity":"sha512-udL6bFjwLuy0Kf9nyjuFlbnpDUdA72H0Vn0ukV2CJjzUkpU0Y6YSrCDO8y1oi2/MXrXnmxCVn83wjO/12/MQNQ==","shasum":"7de0fae9a19005ddb39cffb16588c2297dec9d6b","tarball":"https://registry.npmjs.org/@armand-veress/shuffle-array/-/shuffle-array-0.1.0.tgz","fileCount":19,"unpackedSize":15531,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIG3Q/rmjIaf1aVamvc+cK82xdAzLlqtxKdidEitXmet7AiBH7INl5CN/jF1pLmchGZoH0seyASQweEfim5/XNMLn7g=="}]},"_npmUser":{"name":"armand-veress","email":"army.veress@gmail.com"},"directories":{},"maintainers":[{"name":"armand-veress","email":"army.veress@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/shuffle-array_0.1.0_1775639099611_0.04070900901919905"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-08T09:04:59.517Z","0.1.0":"2026-04-08T09:04:59.752Z","modified":"2026-04-08T09:04:59.950Z"},"maintainers":[{"name":"armand-veress","email":"army.veress@gmail.com"}],"description":"A small library that takes an array as input and returns a new array that is shuffled.","homepage":"https://github.com/yourusername/shuffle-array#readme","keywords":["array","shuffle","functional"],"repository":{"type":"git","url":"git+https://github.com/yourusername/shuffle-array.git"},"author":{"name":"your name","email":"your-email@email.com","url":"https://yourwebsite.com"},"bugs":{"url":"https://github.com/yourusername/shuffle-array/issues"},"license":"MIT","readme":"# @yourusername/shuffle-array (Class 2 Example)\n\n> A small library that takes an array as input and returns a new array that is shuffled.\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n   - [Examples](#examples)\n- [Contribution](#contribution)\n- [Security](#security)\n- [License](#license)\n\n## Installation\n\nInstall via npm:\n\n```bash\nnpm install @yourusername/shuffle-array\n```\nInstall via yarn:\n\n```bash\nyarn add @yourusername/shuffle-array\n```\n\n## Usage\n\nBasic Usage\n\n```js\nimport shuffleArray from '@yourusername/shuffle-array';\n\nconst startArray = [1, 2, 3, 4, 5];\nconst newShuffledArray = shuffleArray(startArray);\n\nconsole.log(startArray);       // e.g., [1, 2, 3, 4, 5]\nconsole.log(newShuffledArray); // e.g., [3, 1, 5, 2, 4]\n```\n\n### Examples\n\nShuffle a list of user IDs:\n\n```js\nimport shuffleArray from '@yourusername/shuffle-array';\n\nconst userIds = ['u1', 'u2', 'u3', 'u4'];\nconst randomizedOrderOfUserIds = shuffleArray(userIds);\n\nconsole.log(randomizedOrderOfUserIds); // e.g., ['u1', 'u3', 'u4', 'u2']\n```\n\nUse in a game for randomizing cards:\n\n```js\nimport shuffleArray from '@yourusername/shuffle-array';\n\nconst deck = ['Ace of Spades', 'Two of Hearts']; // some card deck\nconst shuffledDeck = shuffleArray(deck);\n\nconsole.log(shuffledDeck); // e.g., ['Two of Hearts', 'Ace of Spades', ...]\n```\n\n## Contribution\n\nContributions are welcome! Please see [CONTRIBUTING.md](./CONTRIBUTING.md) for more details.\n\n## Security\n\nPlease refer to our [SECURITY.md](./SECURITY.md) for information about our security policies, how to report vulnerabilities, and our approach to handling security concerns.\n\n**Important Note**: This library uses non-cryptographic randomness (`Math.random()`). Do not rely on it for security-critical functionality.\n\n## License\n\nThis project is licensed under the [MIT License](./LICENSE.md).\n","readmeFilename":"README.md","_rev":"1-fb76485ec4196fd52178795a2e517de3"}