{"id":19291345,"url":"https://github.com/annexare/packdir","last_synced_at":"2025-04-22T06:31:35.968Z","repository":{"id":57317599,"uuid":"56054692","full_name":"annexare/PackDir","owner":"annexare","description":"Pack directory with native command line tools (ZIP, DMG, Node.js, cross-platform).","archived":false,"fork":false,"pushed_at":"2019-01-02T13:04:38.000Z","size":1229,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-21T19:24:15.350Z","etag":null,"topics":["7z","dmg","electron","zip"],"latest_commit_sha":null,"homepage":"https://annexare.github.io/PackDir","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/annexare.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":"2016-04-12T10:49:17.000Z","updated_at":"2020-06-08T17:07:27.000Z","dependencies_parsed_at":"2022-08-25T20:40:50.454Z","dependency_job_id":null,"html_url":"https://github.com/annexare/PackDir","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/annexare%2FPackDir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/annexare%2FPackDir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/annexare%2FPackDir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/annexare%2FPackDir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/annexare","download_url":"https://codeload.github.com/annexare/PackDir/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250183211,"owners_count":21388675,"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":["7z","dmg","electron","zip"],"created_at":"2024-11-09T22:24:47.036Z","updated_at":"2025-04-22T06:31:35.537Z","avatar_url":"https://github.com/annexare.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PackDir\n\n[![NPM](https://img.shields.io/npm/v/pack-dir.svg \"NPM package version\")](https://www.npmjs.com/package/pack-dir)\n[![Travis CI](https://api.travis-ci.org/annexare/PackDir.svg \"Travis CI\")](https://travis-ci.org/annexare/PackDir)\n[![AppVeyor CI](https://ci.appveyor.com/api/projects/status/dprobj2m351v6aaa?svg=true \"AppVeyor CI\")](https://ci.appveyor.com/project/z-ax/packdir)\n\nPack specified directory with native current OS command line tools.\n\nMain purpose for this lib was to pack the Electron app.\n\u003cbr\u003e\nSo, by default, if specified `path` has a `darwin` in it's name,\nthe directory will be packed as DMG under OS X.\n\n## Usage\n\nGet the package via NPM: `npm install pack-dir`.\n\n```js\nconst Pack = require('pack-dir');\n\n// Set custom DMG RegEx, default is `/darwin/`.\nPack.param('dmg', /osx/);\n\n// Pack the directory\nlet zipPath = Pack.path('some/test/dir');\n// Extract to directory\nlet extractedPath = Pack.extract(zipPath, 'some/destination');\n\n// Async example\nPack.param('isSync', false);\nlet zipPath = Pack.path('some/test/dir', (error, stdout, stderr) =\u003e {\n  // ...\n});\n```\n\n### Parameters\n\n* `dmg` `boolean|RegEx`, check to pack into DMG instead of ZIP.\n* `dmgFormat` `string`, the `hdiutil -format` parameter value ([docs](https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/hdiutil.1.html)).\n* `isSilent` `boolean`, `false`, will write only Errors to console.\n* `isSync` `boolean`, `true`, synchronous packaging.\n* `skipDirName` `boolean`, `true`, don't create extra directory inside ZIP archive.\n* `zipOutputMaxBuffer` `int`, `1024 * 200`.\n\n## Credits\n\nCreated by [Annexare Studio](https://annexare.com/).\nFeel free to use it as you need in your apps or send updates into [this](https://github.com/annexare/PackDir) public repository.\nAll code is under MIT license.\n\n## 7-Zip\n\nFor Windows host [7-Zip](http://www.7-zip.org/) standalone console app is used\n(~1MB, doesn't require installation).\nAll license files are included with it, with respect to the author (Igor Pavlov).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fannexare%2Fpackdir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fannexare%2Fpackdir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fannexare%2Fpackdir/lists"}