{"id":40274060,"url":"https://github.com/mirismaili/shufflable-array","last_synced_at":"2026-01-20T03:03:45.741Z","repository":{"id":57359036,"uuid":"364777592","full_name":"mirismaili/shufflable-array","owner":"mirismaili","description":"Extended javascript native Array with an additional shuffle() method","archived":false,"fork":false,"pushed_at":"2021-05-15T07:52:00.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T16:02:01.295Z","etag":null,"topics":["array","built-in-array","builtin-array","native-array","safe","shufflable","shuffle","shuffleable"],"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/mirismaili.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":"2021-05-06T03:50:44.000Z","updated_at":"2021-05-15T07:52:03.000Z","dependencies_parsed_at":"2022-09-06T21:41:14.264Z","dependency_job_id":null,"html_url":"https://github.com/mirismaili/shufflable-array","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mirismaili/shufflable-array","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirismaili%2Fshufflable-array","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirismaili%2Fshufflable-array/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirismaili%2Fshufflable-array/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirismaili%2Fshufflable-array/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mirismaili","download_url":"https://codeload.github.com/mirismaili/shufflable-array/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirismaili%2Fshufflable-array/sbom","scorecard":{"id":649238,"data":{"date":"2025-08-11","repo":{"name":"github.com/mirismaili/shufflable-array","commit":"eba148a70fa3546aa6c3adc07e36bac3ff6abe73"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/4 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-21T13:00:15.973Z","repository_id":57359036,"created_at":"2025-08-21T13:00:15.973Z","updated_at":"2025-08-21T13:00:15.973Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28594958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","built-in-array","builtin-array","native-array","safe","shufflable","shuffle","shuffleable"],"created_at":"2026-01-20T03:03:45.689Z","updated_at":"2026-01-20T03:03:45.735Z","avatar_url":"https://github.com/mirismaili.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shufflable-Array\n\n\u003e Extended javascript native `Array` (`[]`) with an additional \n\u003e (**[in-place](https://en.wikipedia.org/wiki/In-place_algorithm)**) `shuffle()` method\n\u003e \n\u003e ***This doesn't modify `Array.prototype`.***\n\n[![npm (scoped)](https://img.shields.io/npm/v/shufflable-array.svg)](https://npmjs.com/package/shufflable-array)\n[![install size](https://packagephobia.now.sh/badge?p=shufflable-array)](https://packagephobia.now.sh/result?p=shufflable-array)\n[![downloads](https://img.shields.io/npm/dt/shufflable-array.svg)](https://npmjs.com/package/shufflable-array) \u003cbr\u003e\n[![dependencies](https://david-dm.org/mirismaili/shufflable-array.svg)](https://david-dm.org/mirismaili/shufflable-array)\n[![devDependencies](https://david-dm.org/mirismaili/shufflable-array/dev-status.svg)](https://david-dm.org/mirismaili/shufflable-array?type=dev) \u003cbr\u003e\n[![license](https://img.shields.io/github/license/mirismaili/shufflable-array.svg)](https://github.com/mirismaili/shufflable-array/blob/master/LICENSE)\n[![Forks](https://img.shields.io/github/forks/mirismaili/shufflable-array.svg?style=social)](https://github.com/mirismaili/shufflable-array/fork)\n[![Stars](https://img.shields.io/github/stars/mirismaili/shufflable-array.svg?style=social)](https://github.com/mirismaili/shufflable-array)\n\n```bash\nnpm i shufflable-array\n```\n\nor:\n\n```bash\nyarn add shufflable-array\n```\n\n## Usage\n\n```javascript\nimport ShufflableArray from 'shufflable-array'\n\nconst shufflableArray = new ShufflableArray(1, 2, 3, 4, 5)\n\nconsole.log(shufflableArray instanceof Array) // =\u003e true\n\nshufflableArray.shuffle() // =\u003e Ex. [ 5, 1, 4, 3, 2 ]\n```\n\n## Example\n\n```javascript\nimport ShufflableArray from 'shufflable-array'\n\nconst shufflableArray = new ShufflableArray(1, 2, 3, 4, 5)\nconsole.log(shufflableArray) // =\u003e ShufflableArray(5) [ 1, 2, 3, 4, 5 ]\nconsole.log(shufflableArray[2], shufflableArray[5]) // =\u003e 3 undefined\nconsole.log(shufflableArray.length) // =\u003e 5\n\nshufflableArray.push(6)\nconsole.log(shufflableArray) // =\u003e ShufflableArray(6) [ 1, 2, 3, 4, 5, 6 ]\n\nshufflableArray[5] = 0\nconsole.log(shufflableArray) // =\u003e ShufflableArray(6) [ 1, 2, 3, 4, 5, 0 ]\n\nconst shuffledArray = shufflableArray.shuffle()\nconsole.log(shufflableArray) // =\u003e Ex. ShufflableArray(6) [ 1, 3, 5, 4, 0, 2 ]\nconsole.log(shufflableArray === shuffledArray) // =\u003e true\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirismaili%2Fshufflable-array","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmirismaili%2Fshufflable-array","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirismaili%2Fshufflable-array/lists"}