{"id":21405258,"url":"https://github.com/rythenglyth/dly-parser","last_synced_at":"2025-04-16T03:50:20.365Z","repository":{"id":234599811,"uuid":"789213725","full_name":"RythenGlyth/dly-parser","owner":"RythenGlyth","description":"A tool and Node.js package to parse immanens' DLY container files.","archived":false,"fork":false,"pushed_at":"2024-04-20T00:42:47.000Z","size":8,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T04:51:11.701Z","etag":null,"topics":["container","delivery","delivery-reader","deliveryreader","dly","dly-container","file","fileformat","immanens","parser"],"latest_commit_sha":null,"homepage":"","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/RythenGlyth.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":"2024-04-20T00:06:10.000Z","updated_at":"2024-04-25T07:52:27.000Z","dependencies_parsed_at":"2024-04-20T17:45:49.677Z","dependency_job_id":null,"html_url":"https://github.com/RythenGlyth/dly-parser","commit_stats":null,"previous_names":["rythenglyth/dly-parser"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RythenGlyth%2Fdly-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RythenGlyth%2Fdly-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RythenGlyth%2Fdly-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RythenGlyth%2Fdly-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RythenGlyth","download_url":"https://codeload.github.com/RythenGlyth/dly-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249192615,"owners_count":21227816,"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":["container","delivery","delivery-reader","deliveryreader","dly","dly-container","file","fileformat","immanens","parser"],"created_at":"2024-11-22T16:23:46.753Z","updated_at":"2025-04-16T03:50:20.347Z","avatar_url":"https://github.com/RythenGlyth.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DLY-Parser\n\nA tool and Node.js package to parse immanens' DLY container files.\n\nThese files are used by immanens' Delivery Reader.\n\nThe files start with the magic bytes `DLY` and contain a header followed by a list of files.\n\n# Command Line Usage\n\nInstall the package globally:\n\n```sh\nnpm install -g dly-parser\n```\n\nThen you can use the `dly-parser` command:\n\n```sh\ndly-parser --help\n```\n\n## Examples\n\nView information about a DLY container:\n```sh\ndly-parser info path/to/container.dly\n```\n\nList files in a DLY container:\n```sh\ndly-parser list path/to/container.dly # List all files\n\ndly-parser list path/to/container.dly --full # Show more information about each file\n\ndly-parser list path/to/container.dly --extension pdf # Only files with the .pdf extension\n\ndly-parser list path/to/container.dly --regex \".*\\.(pdf|jpg)\" # Only files with the .pdf or .jpg extension\n```\n\nExtract files from a DLY container:\n```sh\ndly-parser extract path/to/container.dly -o path/to/output/directory --all # Extract all files\n\ndly-parser extract path/to/container.dly -o path/to/output/directory --extension pdf # Only extract files with the .pdf extension\n\ndly-parser extract path/to/container.dly -o path/to/output/directory --regex \".*\\.(pdf|jpg)\" # Only extract files with the .pdf or .jpg extension\n\ndly-parser extract path/to/container.dly -o path/to/output/directory --index 0,1,2 # Only extract files at the specified indices\n\ndly-parser extract path/to/container.dly -o path/to/output/directory --index 0,1,2 --extension pdf # Only extract files that are at the specified indices or have the .pdf extension\n\ndly-parser extract path/to/container.dly -o path/to/output/directory --index 0,1,2 --extension pdf --filter-all # Only extract files that are at the specified indices and have the .pdf extension\n```\n\n# Node.js Usage\n\nInstall the package as a dependency:\n\n```sh\nnpm install dly-parser\n```\n\nThen you can use the package in your code:\n\n```js\nimport { DLYContainer, DLYContainerProviderFS } from 'dly-parser';\n\nconst container = new DLYContainer(new DLYContainerProviderFS('path/to/container.dly'));\nconst header = await dly.parseHeader()\nconsole.log(`Format-Version: ${header.archiveVersion \u0026 0x0000FFFF}.${(header.archiveVersion \u0026 0xFFFF0000) \u003e\u003e 16}`)\n```\n\nHave a look at the [cli.ts](src/cli.ts) file as an example.\n\n# Contributing\n\nContributions are welcome! Feel free to open an issue or submit a pull request.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frythenglyth%2Fdly-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frythenglyth%2Fdly-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frythenglyth%2Fdly-parser/lists"}