{"id":21716711,"url":"https://github.com/postor/zip-list-entry","last_synced_at":"2026-04-12T21:37:43.558Z","repository":{"id":230266516,"uuid":"81897992","full_name":"postor/zip-list-entry","owner":"postor","description":"list entry from zip file","archived":false,"fork":false,"pushed_at":"2017-02-14T07:39:48.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-26T19:20:07.015Z","etag":null,"topics":["entry","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/postor.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-02-14T02:58:37.000Z","updated_at":"2024-02-28T18:53:46.000Z","dependencies_parsed_at":"2024-03-28T19:17:36.089Z","dependency_job_id":"9f360f6c-cca2-4983-9484-f920da490cd2","html_url":"https://github.com/postor/zip-list-entry","commit_stats":null,"previous_names":["postor/zip-list-entry"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postor%2Fzip-list-entry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postor%2Fzip-list-entry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postor%2Fzip-list-entry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postor%2Fzip-list-entry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/postor","download_url":"https://codeload.github.com/postor/zip-list-entry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244679636,"owners_count":20492450,"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":["entry","zip"],"created_at":"2024-11-26T01:12:51.554Z","updated_at":"2026-04-12T21:37:38.518Z","avatar_url":"https://github.com/postor.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zip-list-entry\nlist entry from zip file | 从zip文件获取完整的目录文件结构\n## install | 安装\n```\nnpm install zip-list-entry --save\n```\n## usage | 使用\n```\nvar listEntries = require('zip-list-entry')\nvar path = require('path')\nvar file = path.join(__dirname,'test.zip')\n\nlistEntries(file,{\n  return: Object\n}).then(function(entries){\n  console.log(JSON.stringify(entries))\n},function(err){\n  console.log(err)\n})\n```\n\n## result | 结果\n```\n//return: Array\n[\"1/\",\"1/a/\",\"1/a/x/\",\"1/a/x/a.txt\",\"1/b/\",\"1/c/\",\"2/\",\"3/\",\"test.js\"]\n//return: Object\n{\"1\":{\"a\":{\"x\":{\"a.txt\":\"1/a/x/a.txt\"}},\"b\":{},\"c\":{}},\"2\":{},\"3\":{},\"test.js\":\"test.js\"}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostor%2Fzip-list-entry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpostor%2Fzip-list-entry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostor%2Fzip-list-entry/lists"}