{"id":18654076,"url":"https://github.com/ziqiangwang/js-zip","last_synced_at":"2026-05-01T17:35:54.453Z","repository":{"id":57283893,"uuid":"96182966","full_name":"ZiQiangWang/js-zip","owner":"ZiQiangWang","description":"Implement zip function of python","archived":false,"fork":false,"pushed_at":"2017-07-09T15:06:40.000Z","size":10,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-27T14:12:09.355Z","etag":null,"topics":["matrix","python","transpose","zip"],"latest_commit_sha":null,"homepage":null,"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/ZiQiangWang.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":"2017-07-04T06:27:07.000Z","updated_at":"2017-07-05T03:26:55.000Z","dependencies_parsed_at":"2022-09-19T21:18:03.226Z","dependency_job_id":null,"html_url":"https://github.com/ZiQiangWang/js-zip","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/ZiQiangWang%2Fjs-zip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZiQiangWang%2Fjs-zip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZiQiangWang%2Fjs-zip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZiQiangWang%2Fjs-zip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZiQiangWang","download_url":"https://codeload.github.com/ZiQiangWang/js-zip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239467339,"owners_count":19643603,"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":["matrix","python","transpose","zip"],"created_at":"2024-11-07T07:13:56.071Z","updated_at":"2025-11-05T16:30:32.622Z","avatar_url":"https://github.com/ZiQiangWang.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# js-zip\n\n\u003e Implement zip function of python, used to transform a matrix,such as:\n\n```js\n[\n    [1,2,3],\n    [4,5,6],\n    [7,8,9]\n]\n```\nto:\n```js\n[\n    [1,4,7],\n    [2,5,8],\n    [3,6,9]\n]\n```\nEach row must be **iteratable object**,such as Array,String\n## Installation\n\n\u003e npm i -S js-zip\n\n## Example\n- Multi Arrays\n```js\nconst JsZip = require('js-zip');\nconst a = [1,2,3];\nconst b = [4,5,6];\nconst c = [7,8,9];\nconst matrix = JsZip(a, b, c);\n```\noutput matrix is:\n```js\n[\n    [1,4,7],\n    [2,5,8],\n    [3,6,9]\n]\n```\n- Matrix\n```js\nconst JsZip = require('js-zip');\nconst arr = [[1,2,3], [4,5,6], [7,8,9]];\nconst matrix = JsZip(...arr);\n```\noutput matrix is:\n```js\n[\n    [1,4,7],\n    [2,5,8],\n    [3,6,9]\n]\n```\n- String List\n```js\nconst JsZip = require('js-zip');\nconst arr = ['abc', 'def', 'xyz'];\nconst maxtrix = JsZip(...arr);\n```\noutput matrix is:\n```js\n [ \n     [ 'a', 'd', 'x' ], \n     [ 'b', 'e', 'y' ], \n     [ 'c', 'f', 'z' ] \n ]\n ```\n - Use \u003cscript\u003e label\n ```js\n\u003cscript type=\"text/javascript\" src=\"../dist/js-zip.min.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\"\u003e\n    (function() {\n        var a = [1,2,3];\n        var b = [4,5,6];\n        const maxtrix = JsZip(a,b);\n    })();\n\u003c/script\u003e\n ```\n  ## 4. License\n\nMIT@[ZiQiangWang](https://github.com/ZiQiangWang).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziqiangwang%2Fjs-zip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fziqiangwang%2Fjs-zip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziqiangwang%2Fjs-zip/lists"}