{"id":16125663,"url":"https://github.com/dy/swizz","last_synced_at":"2026-01-20T07:07:24.193Z","repository":{"id":57154681,"uuid":"200953520","full_name":"dy/swizz","owner":"dy","description":"Provide swizzles for an array","archived":false,"fork":false,"pushed_at":"2019-08-07T02:14:24.000Z","size":5,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T00:34:15.939Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dy.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-07T02:03:02.000Z","updated_at":"2019-08-07T14:33:27.000Z","dependencies_parsed_at":"2022-09-07T12:20:33.105Z","dependency_job_id":null,"html_url":"https://github.com/dy/swizz","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fswizz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fswizz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fswizz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Fswizz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dy","download_url":"https://codeload.github.com/dy/swizz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247698042,"owners_count":20981291,"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":[],"created_at":"2024-10-09T21:30:31.481Z","updated_at":"2026-01-20T07:07:24.155Z","avatar_url":"https://github.com/dy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swizz [![Build Status](https://travis-ci.org/dy/swizz.svg?branch=master)](https://travis-ci.org/dy/swizz)\n\nProvide swizzles for arrays, like GLSL.\n\n [![npm install swizz](https://nodei.co/npm/swizz.png?mini=true)](https://npmjs.org/package/swizz/)\n\n```js\nimport swizzle from 'swizz'\n\nlet arr = swizzle([0, 1, 2, 3])\n\narr.zyx = arr.xyz\n\narr // [2, 1, 0, 3]\n```\n\nSupported swizzles: `xyzw`, `stpd`, `rgba`.\nUses _Proxy_ under the hood.\n\n\n## Related art\n\n* [negative-array](https://ghub.io/negative-array)\n* [known](https://ghub.io/known)\n* [on-change](https://ghub.io/on-change)\n\n## Refs\n\n* [Metaprogramming with proxies](https://exploringjs.com/es6/ch_proxies.html)\n\n\n\u003cp align=\"right\"\u003eHK\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy%2Fswizz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdy%2Fswizz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy%2Fswizz/lists"}